diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-10-25 12:54:21 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-10-25 12:54:21 +0000 |
commit | 49f6242b34f1daf9591b262c48723b7f2e7883d3 (patch) | |
tree | a142a224718534f9c42a56518c75e5fab3db99d0 /dln.c | |
parent | 06a8e95fb414a4142cab8f04172b80da8baec98d (diff) | |
download | ruby-49f6242b34f1daf9591b262c48723b7f2e7883d3.tar.gz |
* include/ruby/defines.h: use "__sparc" instead of "sparc" and
"__sparc__".
* dln.c: ditto.
[ruby-dev:44694]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33524 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'dln.c')
-rw-r--r-- | dln.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -228,7 +228,7 @@ load_header(int fd, struct exec *hdrp, long disp) #define RELOC_TARGET_SIZE(r) ((r)->r_length) #endif -#if defined(__sun) && defined(sparc) +#if defined(__sun) && defined(__sparc) /* Sparc (Sun 4) macros */ # undef relocation_info # define relocation_info reloc_info_sparc @@ -530,7 +530,7 @@ reloc_undef(int no, struct undef *undef, struct reloc_arg *arg) { int datum; char *address; -#if defined(__sun) && defined(sparc) +#if defined(__sun) && defined(__sparc) unsigned int mask = 0; #endif @@ -539,7 +539,7 @@ reloc_undef(int no, struct undef *undef, struct reloc_arg *arg) datum = arg->value; if (R_PCREL(&(undef->reloc))) datum -= undef->base; -#if defined(__sun) && defined(sparc) +#if defined(__sun) && defined(__sparc) datum += undef->reloc.r_addend; datum >>= R_RIGHTSHIFT(&(undef->reloc)); mask = (1 << R_BITSIZE(&(undef->reloc))) - 1; @@ -763,7 +763,7 @@ load_1(int fd, long disp, const char *need_init) while (rel < rel_end) { char *address = (char*)(rel->r_address + block); long datum = 0; -#if defined(__sun) && defined(sparc) +#if defined(__sun) && defined(__sparc) unsigned int mask = 0; #endif @@ -798,7 +798,7 @@ load_1(int fd, long disp, const char *need_init) } /* end .. is static */ if (R_PCREL(rel)) datum -= block; -#if defined(__sun) && defined(sparc) +#if defined(__sun) && defined(__sparc) datum += rel->r_addend; datum >>= R_RIGHTSHIFT(rel); mask = (1 << R_BITSIZE(rel)) - 1; |