diff options
author | Richard Henderson <rth@redhat.com> | 2001-08-21 00:22:23 +0000 |
---|---|---|
committer | Richard Henderson <rth@redhat.com> | 2001-08-21 00:22:23 +0000 |
commit | ca3f769514c0a9d770848a21267b29236225252f (patch) | |
tree | 9d2be01a434860efd4ec358668a3bafe87b9da89 /gas | |
parent | eb828599478cef63ee0ec26882542380f16d623f (diff) | |
download | gdb-ca3f769514c0a9d770848a21267b29236225252f.zip gdb-ca3f769514c0a9d770848a21267b29236225252f.tar.gz gdb-ca3f769514c0a9d770848a21267b29236225252f.tar.bz2 |
* config/tc-alpha.h (MD_APPLY_FIX3): Define.
* config/tc-alpha.c (md_apply_fix3): Rename from md_apply_fix;
use seg parameter instead of now_seg.
Diffstat (limited to 'gas')
-rw-r--r-- | gas/ChangeLog | 6 | ||||
-rw-r--r-- | gas/config/tc-alpha.c | 5 | ||||
-rw-r--r-- | gas/config/tc-alpha.h | 1 |
3 files changed, 10 insertions, 2 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog index c9853d9..1b7503a 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,9 @@ +2001-08-20 Richard Henderson <rth@redhat.com> + + * config/tc-alpha.h (MD_APPLY_FIX3): Define. + * config/tc-alpha.c (md_apply_fix3): Rename from md_apply_fix; + use seg parameter instead of now_seg. + 2001-08-18 H.J. Lu <hjl@gnu.org> * config/tc-mips.c (show): Add the missing prototype. diff --git a/gas/config/tc-alpha.c b/gas/config/tc-alpha.c index 65bc4f8..add17c8 100644 --- a/gas/config/tc-alpha.c +++ b/gas/config/tc-alpha.c @@ -1159,9 +1159,10 @@ md_pcrel_from (fixP) GPDISP. */ int -md_apply_fix (fixP, valueP) +md_apply_fix3 (fixP, valueP, seg) fixS *fixP; valueT *valueP; + segT seg; { char * const fixpos = fixP->fx_frag->fr_literal + fixP->fx_where; valueT value = *valueP; @@ -1196,7 +1197,7 @@ md_apply_fix (fixP, valueP) #endif do_reloc_gp: - fixP->fx_addsy = section_symbol (now_seg); + fixP->fx_addsy = section_symbol (seg); md_number_to_chars (fixpos, value, 2); break; diff --git a/gas/config/tc-alpha.h b/gas/config/tc-alpha.h index e0de813..26739f1 100644 --- a/gas/config/tc-alpha.h +++ b/gas/config/tc-alpha.h @@ -49,6 +49,7 @@ extern valueT alpha_gp_value; #define TC_FORCE_RELOCATION(FIXP) alpha_force_relocation (FIXP) #define tc_fix_adjustable(FIXP) alpha_fix_adjustable (FIXP) #define RELOC_REQUIRES_SYMBOL +#define MD_APPLY_FIX3 /* This expression evaluates to false if the relocation is for a local object for which we still want to do the relocation at runtime. |