From 01d9ad14d45872a6f97b7ca0599603cec06e1c63 Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Thu, 5 May 2005 16:40:11 +0000 Subject: [PATCH] bfd/ 2005-05-05 H.J. Lu * elflink.c (_bfd_elf_provide_section_bound_symbols): Use "__bss_start" instead of "_edata" as fallback. ld/ 2005-05-05 H.J. Lu * scripttempl/elf.sc: Document the usage of __bss_start. --- bfd/ChangeLog | 5 +++++ bfd/elflink.c | 4 ++-- ld/ChangeLog | 4 ++++ ld/scripttempl/elf.sc | 2 ++ 4 files changed, 13 insertions(+), 2 deletions(-) diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 3856002a4f..a1c9e8c1af 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2005-05-05 H.J. Lu + + * elflink.c (_bfd_elf_provide_section_bound_symbols): Use + "__bss_start" instead of "_edata" as fallback. + 2005-05-05 H.J. Lu * bfd-in2.h: Regenerated. diff --git a/bfd/elflink.c b/bfd/elflink.c index 833e1f44e5..abdf68dab8 100644 --- a/bfd/elflink.c +++ b/bfd/elflink.c @@ -9883,10 +9883,10 @@ _bfd_elf_provide_section_bound_symbols (struct bfd_link_info *info, else { /* We have to choose those values very carefully. Some targets, - like alpha, may have relocation overflow with 0. "_edata" + like alpha, may have relocation overflow with 0. "__bss_start" should be defined in all cases. */ struct elf_link_hash_entry *h - = elf_link_hash_lookup (elf_hash_table (info), "_edata", + = elf_link_hash_lookup (elf_hash_table (info), "__bss_start", FALSE, FALSE, FALSE); if (h != NULL && h->root.type == bfd_link_hash_defined) start_val = h->root.u.def.value; diff --git a/ld/ChangeLog b/ld/ChangeLog index 8dd6a9e119..3304c08624 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,7 @@ +2005-05-05 H.J. Lu + + * scripttempl/elf.sc: Document the usage of __bss_start. + 2005-05-05 Paul Brook * Makefile.am: Add eelf_i386_vxworks. diff --git a/ld/scripttempl/elf.sc b/ld/scripttempl/elf.sc index cba97ebeb5..df79e7c43f 100644 --- a/ld/scripttempl/elf.sc +++ b/ld/scripttempl/elf.sc @@ -376,6 +376,8 @@ cat <