diff options
author | Alan Modra <amodra@bigpond.net.au> | 2008-07-07 00:46:51 +0000 |
---|---|---|
committer | Alan Modra <amodra@bigpond.net.au> | 2008-07-07 00:46:51 +0000 |
commit | b537f3e148146bd432d435e95ca31c6848cfffb5 (patch) | |
tree | 5f7dbb8408c0a4d4480ffa25fa3646f2f576f01c /ld/emultempl/ppc64elf.em | |
parent | 871fa8866882ba43825c5a7bbb2389f061055cde (diff) | |
download | binutils-redhat-b537f3e148146bd432d435e95ca31c6848cfffb5.tar.gz |
* emultempl/armelf.em (elf32_arm_add_stub_section): Use
bfd_make_section_with_flags.
* emultempl/avrelf.em (avr_elf_create_output_section_statements):
Likewise.
* emultempl/hppaelf.em (hppaelf_add_stub_section): Likewise.
* emultempl/m68hc1xelf.em (m68hc11elf_add_stub_section): Likewise.
* emultempl/m68kcoff.em (gld${EMULATION_NAME}_after_open): Likewise.
* emultempl/m68kelf.em (m68k_elf_after_open): Likewise.
* emultempl/ppc64elf.em (ppc_add_stub_section): Likewise.
* emultempl/sh64elf.em (sh64_elf_${EMULATION_NAME}_before_allocation):
Likewise.
Diffstat (limited to 'ld/emultempl/ppc64elf.em')
-rw-r--r-- | ld/emultempl/ppc64elf.em | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/ld/emultempl/ppc64elf.em b/ld/emultempl/ppc64elf.em index 51623b18a4..9a49fa5a34 100644 --- a/ld/emultempl/ppc64elf.em +++ b/ld/emultempl/ppc64elf.em @@ -221,13 +221,11 @@ ppc_add_stub_section (const char *stub_sec_name, asection *input_section) lang_output_section_statement_type *os; struct hook_stub_info info; - stub_sec = bfd_make_section_anyway (stub_file->the_bfd, stub_sec_name); - if (stub_sec == NULL) - goto err_ret; - flags = (SEC_ALLOC | SEC_LOAD | SEC_READONLY | SEC_CODE | SEC_HAS_CONTENTS | SEC_IN_MEMORY | SEC_KEEP); - if (!bfd_set_section_flags (stub_file->the_bfd, stub_sec, flags)) + stub_sec = bfd_make_section_anyway_with_flags (stub_file->the_bfd, + stub_sec_name, flags); + if (stub_sec == NULL) goto err_ret; output_section = input_section->output_section; |