aboutsummaryrefslogtreecommitdiff
path: root/ld/ldcref.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2014-07-01 19:32:25 +0930
committerAlan Modra <amodra@gmail.com>2014-07-01 20:28:20 +0930
commit7341d5e22f1061016411734ba162d362ac5928db (patch)
tree36cec79187a6e05bf2e6fa095168347669fbb11e /ld/ldcref.c
parent2dc0e7b400e46f105960c0dfcd431013f0013c6a (diff)
downloadgdb-7341d5e22f1061016411734ba162d362ac5928db.zip
gdb-7341d5e22f1061016411734ba162d362ac5928db.tar.gz
gdb-7341d5e22f1061016411734ba162d362ac5928db.tar.bz2
Add symbols for global entry stub, and report stats
The undefined function symbols (with non-zero value) on global entry stubs are discarded by objdump when disassembling, so give objdump another symbol to mark the stubs. Also fixes a couple of bugs: - entry_section was set to .opd for ELFv2, which meant a hard error rather than a warning when _start wasn't defined. - global entry stubs were not built if they were the only type of stub in an executable. bfd/ * elf64-ppc.c (ppc_stub_type): Add ppc_stub_global_entry. (struct ppc_link_hash_table): Increase size of stub_count array. (build_global_entry_stubs): Emit symbol on global entry stub. (ppc64_elf_build_stubs): NULL check htab->brlt. Add global entry stub stats. ld/ * emultempl/ppc64elf.em (stub_added): Delete. (gld${EMULATION_NAME}_finish): Call ppc64_elf_build_stubs even when none of the usual stubs have been added. Only change entry_section for ELFv1.
Diffstat (limited to 'ld/ldcref.c')
0 files changed, 0 insertions, 0 deletions