* config/obj-elf.c (obj_elf_change_section): Allow "x" for .note*.
This commit is contained in:
parent
e6f672d252
commit
92191b291d
2 changed files with 7 additions and 2 deletions
|
@ -1,3 +1,7 @@
|
|||
2003-07-30 Alan Modra <amodra@bigpond.net.au>
|
||||
|
||||
* config/obj-elf.c (obj_elf_change_section): Allow "x" for .note*.
|
||||
|
||||
2003-07-29 Alan Modra <amodra@bigpond.net.au>
|
||||
|
||||
* config/tc-sh.c (tc_gen_reloc): Test for R_SH_IND12W only when ELF.
|
||||
|
|
|
@ -675,8 +675,9 @@ obj_elf_change_section (name, type, attr, entsize, group_name, linkonce, push)
|
|||
/* As a GNU extension, we permit a .note section to be
|
||||
allocatable. If the linker sees an allocateable .note
|
||||
section, it will create a PT_NOTE segment in the output
|
||||
file. */
|
||||
if (strcmp (name, ".note") != 0 || attr != SHF_ALLOC)
|
||||
file. We also allow "x" for .note.GNU-stack. */
|
||||
if (!(def_type == SHT_NOTE
|
||||
&& (attr == SHF_ALLOC || attr == SHF_EXECINSTR)))
|
||||
as_warn (_("setting incorrect section attributes for %s"),
|
||||
name);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue