diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2006-05-05 18:24:45 +0000 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2006-05-05 18:24:45 +0000 |
commit | 7f8411279d59ee620d1e2e153329c0bd47c4ca86 (patch) | |
tree | c4525d808120b4aea7362d95ef7add8f75b5ba63 | |
parent | c7e64c9a767deaad6e7d20cf0e691bd11b5686a4 (diff) | |
download | binutils-7f8411279d59ee620d1e2e153329c0bd47c4ca86.zip binutils-7f8411279d59ee620d1e2e153329c0bd47c4ca86.tar.gz binutils-7f8411279d59ee620d1e2e153329c0bd47c4ca86.tar.bz2 |
2006-05-05 H.J. Lu <hongjiu.lu@intel.com>
PR gas/2598
* config/obj-elf.c (obj_elf_change_section): Allow user
specified SHF_ALPHA_GPREL.
-rw-r--r-- | gas/ChangeLog | 6 | ||||
-rw-r--r-- | gas/config/obj-elf.c | 5 |
2 files changed, 11 insertions, 0 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog index ab362dd..59ca0f8 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,9 @@ +2006-05-05 H.J. Lu <hongjiu.lu@intel.com> + + PR gas/2598 + * config/obj-elf.c (obj_elf_change_section): Allow user + specified SHF_ALPHA_GPREL. + 2006-05-05 Bjoern Haase <bjoern.m.haase@web.de> * gas/config/tc-avr.h (TC_VALIDATE_FIX): Define. Disable fixups diff --git a/gas/config/obj-elf.c b/gas/config/obj-elf.c index f922149..d7a0ff2 100644 --- a/gas/config/obj-elf.c +++ b/gas/config/obj-elf.c @@ -632,6 +632,11 @@ obj_elf_change_section (const char *name, else if (attr == SHF_EXECINSTR && strcmp (name, ".note.GNU-stack") == 0) override = TRUE; +#ifdef TC_ALPHA + /* A section on Alpha may have SHF_ALPHA_GPREL. */ + else if ((attr & ~ssect->attr) == SHF_ALPHA_GPREL) + override = TRUE; +#endif else { if (group_name == NULL) |