summaryrefslogtreecommitdiff
path: root/bfd
diff options
context:
space:
mode:
authorAlan Modra <amodra@bigpond.net.au>2003-08-06 01:27:11 +0000
committerAlan Modra <amodra@bigpond.net.au>2003-08-06 01:27:11 +0000
commit4f1821b4f9cd3f421cdd0a2885f949aba1ec3167 (patch)
tree0fa86ab8fdb05b269959ae4fc4c64e472b3e21fc /bfd
parent152c7c52847d57f1306207f327e79385b1760a7d (diff)
downloadgdb-4f1821b4f9cd3f421cdd0a2885f949aba1ec3167.tar.gz
* elflink.c (_bfd_elf_create_dynamic_sections): Mark .dynbss with
SEC_LINKER_CREATED.
Diffstat (limited to 'bfd')
-rw-r--r--bfd/ChangeLog5
-rw-r--r--bfd/elflink.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 3562ae34e5c..1ca2af1a6f5 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,8 @@
+2003-08-06 Alan Modra <amodra@bigpond.net.au>
+
+ * elflink.c (_bfd_elf_create_dynamic_sections): Mark .dynbss with
+ SEC_LINKER_CREATED.
+
2003-08-05 Daniel Jacobowitz <drow@mvista.com>
* elf32-arm.h (WILL_CALL_FINISH_DYNAMIC_SYMBOL): Define.
diff --git a/bfd/elflink.c b/bfd/elflink.c
index cb6b0b2ba1f..740f5d85051 100644
--- a/bfd/elflink.c
+++ b/bfd/elflink.c
@@ -309,7 +309,7 @@ _bfd_elf_create_dynamic_sections (bfd *abfd, struct bfd_link_info *info)
section into the .bss section of the final image. */
s = bfd_make_section (abfd, ".dynbss");
if (s == NULL
- || ! bfd_set_section_flags (abfd, s, SEC_ALLOC))
+ || ! bfd_set_section_flags (abfd, s, SEC_ALLOC | SEC_LINKER_CREATED))
return FALSE;
/* The .rel[a].bss section holds copy relocs. This section is not