summaryrefslogtreecommitdiff
path: root/ld/emultempl/m68kelf.em
diff options
context:
space:
mode:
authorAlan Modra <amodra@bigpond.net.au>2008-07-07 00:46:51 +0000
committerAlan Modra <amodra@bigpond.net.au>2008-07-07 00:46:51 +0000
commitb537f3e148146bd432d435e95ca31c6848cfffb5 (patch)
tree5f7dbb8408c0a4d4480ffa25fa3646f2f576f01c /ld/emultempl/m68kelf.em
parent871fa8866882ba43825c5a7bbb2389f061055cde (diff)
downloadbinutils-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/m68kelf.em')
-rw-r--r--ld/emultempl/m68kelf.em11
1 files changed, 5 insertions, 6 deletions
diff --git a/ld/emultempl/m68kelf.em b/ld/emultempl/m68kelf.em
index 57a8f1d224..441b4897fc 100644
--- a/ld/emultempl/m68kelf.em
+++ b/ld/emultempl/m68kelf.em
@@ -100,13 +100,12 @@ m68k_elf_after_open (void)
{
asection *relsec;
- relsec = bfd_make_section (abfd, ".emreloc");
+ relsec = bfd_make_section_with_flags (abfd, ".emreloc",
+ (SEC_ALLOC
+ | SEC_LOAD
+ | SEC_HAS_CONTENTS
+ | SEC_IN_MEMORY));
if (relsec == NULL
- || ! bfd_set_section_flags (abfd, relsec,
- (SEC_ALLOC
- | SEC_LOAD
- | SEC_HAS_CONTENTS
- | SEC_IN_MEMORY))
|| ! bfd_set_section_alignment (abfd, relsec, 2)
|| ! bfd_set_section_size (abfd, relsec,
datasec->reloc_count * 12))