From e5542126197fc54a9b8a8543ab4322d4f274d3c3 Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Tue, 11 Jan 2005 08:30:35 +0000 Subject: [PATCH] * elf32-ppc.c (ppc_elf_create_dynamic_sections): Correct .dynsbss flags. --- bfd/ChangeLog | 5 +++++ bfd/elf32-ppc.c | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 92ca82b8e9..a4896539ca 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2005-01-11 Alan Modra + + * elf32-ppc.c (ppc_elf_create_dynamic_sections): Correct + .dynsbss flags. + 2005-01-10 Inderpreet Singh * archures.c: Define bfd_mach_maxq10 and bfd_mach_maxq20. diff --git a/bfd/elf32-ppc.c b/bfd/elf32-ppc.c index 38f8d09bf5..91953902c9 100644 --- a/bfd/elf32-ppc.c +++ b/bfd/elf32-ppc.c @@ -1,6 +1,6 @@ /* PowerPC-specific support for 32-bit ELF Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, - 2004 Free Software Foundation, Inc. + 2004, 2005 Free Software Foundation, Inc. Written by Ian Lance Taylor, Cygnus Support. This file is part of BFD, the Binary File Descriptor library. @@ -2820,7 +2820,7 @@ ppc_elf_create_dynamic_sections (bfd *abfd, struct bfd_link_info *info) htab->dynbss = bfd_get_section_by_name (abfd, ".dynbss"); htab->dynsbss = s = bfd_make_section (abfd, ".dynsbss"); if (s == NULL - || ! bfd_set_section_flags (abfd, s, SEC_ALLOC)) + || ! bfd_set_section_flags (abfd, s, SEC_ALLOC | SEC_LINKER_CREATED)) return FALSE; if (! info->shared) -- 2.11.0