From 7f8411279d59ee620d1e2e153329c0bd47c4ca86 Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Fri, 5 May 2006 18:24:45 +0000 Subject: [PATCH] 2006-05-05 H.J. Lu PR gas/2598 * config/obj-elf.c (obj_elf_change_section): Allow user specified SHF_ALPHA_GPREL. --- gas/ChangeLog | 6 ++++++ gas/config/obj-elf.c | 5 +++++ 2 files changed, 11 insertions(+) diff --git a/gas/ChangeLog b/gas/ChangeLog index ab362dd91aa..59ca0f8ccb5 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,9 @@ +2006-05-05 H.J. Lu + + PR gas/2598 + * config/obj-elf.c (obj_elf_change_section): Allow user + specified SHF_ALPHA_GPREL. + 2006-05-05 Bjoern Haase * 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 f922149cae0..d7a0ff2a382 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) -- 2.30.2