diff options
author | Alan Modra <amodra@gmail.com> | 2008-07-07 00:46:51 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2008-07-07 00:46:51 +0000 |
commit | 9795b468eb39233498a5289ff3297f96c787e848 (patch) | |
tree | 3c2b2a88b98fae9b49b192a2aa56ad19b20f2a87 /ld/emultempl/m68kcoff.em | |
parent | 0eb80fd3e5ec31277b9df363ae066233783e4cbb (diff) | |
download | gdb-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/m68kcoff.em')
-rw-r--r-- | ld/emultempl/m68kcoff.em | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/ld/emultempl/m68kcoff.em b/ld/emultempl/m68kcoff.em index a79eb2c..276c3b2 100644 --- a/ld/emultempl/m68kcoff.em +++ b/ld/emultempl/m68kcoff.em @@ -4,7 +4,7 @@ fragment <<EOF /* This file is is generated by a shell script. DO NOT EDIT! */ /* Handle embedded relocs for m68k. - Copyright 2000, 2002, 2003, 2004, 2005, 2007 + Copyright 2000, 2002, 2003, 2004, 2005, 2007, 2008 Free Software Foundation, Inc. Written by Michael Sokolov <msokolov@ivan.Harhan.ORG>, based on generic.em by Steve Chamberlain <steve@cygnus.com>, embedded relocs code based on @@ -88,13 +88,12 @@ gld${EMULATION_NAME}_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)) |