diff options
author | Alan Modra <amodra@gmail.com> | 2002-07-01 08:07:31 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2002-07-01 08:07:31 +0000 |
commit | e3e942e9908d0fa4d4abf2b39edd99aa07a11535 (patch) | |
tree | 3838232535e0f8198173f06d9e8e023d4bf4906b /ld/emultempl/ppc64elf.em | |
parent | 1e2f5b6e6b11ff65094876b8a8066a59a880a56d (diff) | |
download | binutils-gdb-e3e942e9908d0fa4d4abf2b39edd99aa07a11535.tar.gz |
* ldlang.h (entry_sym): Make it a struct bfd_sym_chain.
* ldlang.c (entry_sym): Likewise.
(ldlang_undef_chain_list_type): Likewise.
(lang_finish): Adjust references to entry_symbol.
(lang_add_entry): Likewise.
(lang_gc_sections): Use link_info.gc_sym_list.
(lang_process): Set link_info.gc_sym_list.
* ldlex.l: Include bfdlink.h.
* ldmain.c (main): Init link_info.gc_sym_list.
* emultempl/aix.em: Adjust references to entry_symbol.
* emultempl/armcoff.em: Likewise.
* emultempl/armelf.em: Likewise.
* emultempl/pe.em: Likewise.
* emultempl/ppc64elf.em (ppc_after_open): New function.
(LDEMUL_AFTER_OPEN): Define.
* emulparams/elf64ppc.sh: KEEP .opd sections.
Diffstat (limited to 'ld/emultempl/ppc64elf.em')
-rw-r--r-- | ld/emultempl/ppc64elf.em | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/ld/emultempl/ppc64elf.em b/ld/emultempl/ppc64elf.em index 9ce7893b923..cf6918eeed7 100644 --- a/ld/emultempl/ppc64elf.em +++ b/ld/emultempl/ppc64elf.em @@ -42,6 +42,7 @@ static bfd_signed_vma group_size = 1; static int dotsyms = 1; static void ppc_create_output_section_statements PARAMS ((void)); +static void ppc_after_open PARAMS ((void)); static asection *ppc_add_stub_section PARAMS ((const char *, asection *)); static void ppc_layout_sections_again PARAMS ((void)); static void gld${EMULATION_NAME}_after_allocation PARAMS ((void)); @@ -71,6 +72,17 @@ ppc_create_output_section_statements () ldlang_add_file (stub_file); } +static void +ppc_after_open () +{ + if (!ppc64_elf_mark_entry_syms (&link_info)) + { + einfo ("%X%P: can not mark entry symbols %E\n"); + return; + } + + gld${EMULATION_NAME}_after_open (); +} struct hook_stub_info { @@ -473,6 +485,7 @@ PARSE_AND_LIST_ARGS_CASES=' # Put these extra ppc64elf routines in ld_${EMULATION_NAME}_emulation # +LDEMUL_AFTER_OPEN=ppc_after_open LDEMUL_AFTER_ALLOCATION=gld${EMULATION_NAME}_after_allocation LDEMUL_FINISH=gld${EMULATION_NAME}_finish LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS=ppc_create_output_section_statements |