aboutsummaryrefslogtreecommitdiff
path: root/ld/emultempl/sh64elf.em
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2008-07-07 00:46:51 +0000
committerAlan Modra <amodra@gmail.com>2008-07-07 00:46:51 +0000
commit9795b468eb39233498a5289ff3297f96c787e848 (patch)
tree3c2b2a88b98fae9b49b192a2aa56ad19b20f2a87 /ld/emultempl/sh64elf.em
parent0eb80fd3e5ec31277b9df363ae066233783e4cbb (diff)
downloadgdb-9795b468eb39233498a5289ff3297f96c787e848.zip
gdb-9795b468eb39233498a5289ff3297f96c787e848.tar.gz
gdb-9795b468eb39233498a5289ff3297f96c787e848.tar.bz2
* 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/sh64elf.em')
-rw-r--r--ld/emultempl/sh64elf.em16
1 files changed, 7 insertions, 9 deletions
diff --git a/ld/emultempl/sh64elf.em b/ld/emultempl/sh64elf.em
index d8cce23..5c588ce 100644
--- a/ld/emultempl/sh64elf.em
+++ b/ld/emultempl/sh64elf.em
@@ -203,15 +203,13 @@ sh64_elf_${EMULATION_NAME}_before_allocation (void)
sh64_elf_section_data; no need to set it
specifically here. */
cranges
- = bfd_make_section (link_info.output_bfd,
- SH64_CRANGES_SECTION_NAME);
- if (cranges == NULL
- || !bfd_set_section_flags (link_info.output_bfd,
- cranges,
- SEC_LINKER_CREATED
- | SEC_KEEP
- | SEC_HAS_CONTENTS
- | SEC_DEBUGGING))
+ = bfd_make_section_with_flags (link_info.output_bfd,
+ SH64_CRANGES_SECTION_NAME,
+ SEC_LINKER_CREATED
+ | SEC_KEEP
+ | SEC_HAS_CONTENTS
+ | SEC_DEBUGGING);
+ if (cranges == NULL)
einfo
(_("%P%E%F: Can't make .cranges section\n"));
}