diff options
Diffstat (limited to 'ld')
-rw-r--r-- | ld/ChangeLog | 5 | ||||
-rw-r--r-- | ld/emultempl/elf32.em | 4 |
2 files changed, 9 insertions, 0 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog index 0c8c209..1378cb5 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,8 @@ +2005-03-23 Alan Modra <amodra@bigpond.net.au> + + * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Set + SEC_EXCLUDE on .gnu.warning sections. + 2005-03-22 Alan Modra <amodra@bigpond.net.au> * scripttempl/elf.sc (SBSS): Don't provide sbss start and end syms. diff --git a/ld/emultempl/elf32.em b/ld/emultempl/elf32.em index 1acedb4..00805d5 100644 --- a/ld/emultempl/elf32.em +++ b/ld/emultempl/elf32.em @@ -1105,6 +1105,10 @@ ${ELF_INTERPRETER_SET_DEFAULT} /* Clobber the section size, so that we don't waste copying the warning into the output file. */ s->size = 0; + + /* Also set SEC_EXCLUDE, so that symbols defined in the warning + section don't get copied to the output. */ + s->flags |= SEC_EXCLUDE; } } } |