]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
Fix duplicate output section statement lookup
authorGuy Martin <gmsoft@tuxicoman.be>
Mon, 20 Jan 2014 03:46:16 +0000 (14:16 +1030)
committerAlan Modra <amodra@gmail.com>
Mon, 20 Jan 2014 03:51:36 +0000 (14:21 +1030)
commit24ef1aa73ed312282bd1a755b3ac94681c9f1544
treed16b770019d07c69d750fe0f8252cf00db9c3157
parentd7c85de1c3d15d7abf68212e4b18cd140dd3f397
Fix duplicate output section statement lookup

Tie output section statements to their associated output section via
output section userdata.  This allows us to avoid hash lookups which
are slower and fail when multiple output sections have the same name.

* ldlang.h (lang_output_section_get): Define.
* ldlang.c (lang_output_section_get): Likewise.
(init_os): Set the output_section userdata to the output
section statement.
* emultempl/hppaelf.em: Use lang_output_section_get instead of
lang_output_section_find where applicable.
* emultempl/aarch64elf.em: Likewise.
* emultempl/aix.em: Likewise.
* emultempl/armelf.em: Likewise.
* emultempl/m68hc1xelf.em: Likewise.
* emultempl/metagelf.em: Likewise.
* emultempl/mipself.em: Likewise.
* emultempl/ppc64elf.em: Likewise.
* emultempl/spuelf.em: Likewise.
12 files changed:
ld/ChangeLog
ld/emultempl/aarch64elf.em
ld/emultempl/aix.em
ld/emultempl/armelf.em
ld/emultempl/hppaelf.em
ld/emultempl/m68hc1xelf.em
ld/emultempl/metagelf.em
ld/emultempl/mipself.em
ld/emultempl/ppc64elf.em
ld/emultempl/spuelf.em
ld/ldlang.c
ld/ldlang.h