summaryrefslogtreecommitdiff
path: root/bfd/elflink.c
diff options
context:
space:
mode:
authorH.J. Lu <hjl@lucon.org>2005-05-05 16:40:11 +0000
committerH.J. Lu <hjl@lucon.org>2005-05-05 16:40:11 +0000
commita8eefba1b3dec032788314a19a2edd77fb3e8a05 (patch)
tree8465b58eb8df9234765a4876352515d3a67e9a6f /bfd/elflink.c
parent1dd455e1f852eba1da5ff38023c341d8c1601b25 (diff)
downloadbinutils-redhat-a8eefba1b3dec032788314a19a2edd77fb3e8a05.tar.gz
bfd/
2005-05-05 H.J. Lu <hongjiu.lu@intel.com> * elflink.c (_bfd_elf_provide_section_bound_symbols): Use "__bss_start" instead of "_edata" as fallback. ld/ 2005-05-05 H.J. Lu <hongjiu.lu@intel.com> * scripttempl/elf.sc: Document the usage of __bss_start.
Diffstat (limited to 'bfd/elflink.c')
-rw-r--r--bfd/elflink.c4
1 files changed, 2 insertions, 2 deletions
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;