bfd/
authorH.J. Lu <hjl.tools@gmail.com>
Thu, 5 May 2005 16:40:11 +0000 (16:40 +0000)
committerH.J. Lu <hjl.tools@gmail.com>
Thu, 5 May 2005 16:40:11 +0000 (16:40 +0000)
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.

bfd/ChangeLog
bfd/elflink.c
ld/ChangeLog
ld/scripttempl/elf.sc

index 3856002a4f89304fffea7f0c1093f4ec55131e3d..a1c9e8c1af2343033e89ffb99b445aefef181e78 100644 (file)
@@ -1,3 +1,8 @@
+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.
+
 2005-05-05  H.J. Lu  <hongjiu.lu@intel.com>
 
        * bfd-in2.h: Regenerated.
index 833e1f44e5d13c94d905d136f6e835ad61899db3..abdf68dab8a4d48ff709b14c82648f827942c4f2 100644 (file)
@@ -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;
index 8dd6a9e1190ee8d377b03dda73782a87fdb67404..3304c086245bc15dfe512d51d10aabe9e2a56290 100644 (file)
@@ -1,3 +1,7 @@
+2005-05-05  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * scripttempl/elf.sc: Document the usage of __bss_start.
+
 2005-05-05  Paul Brook  <paul@codesourcery.com>
 
        * Makefile.am: Add eelf_i386_vxworks.
index cba97ebeb51d6d7e286a8128965b3a8edf1a7fa3..df79e7c43fe48fdecd98ccd00b6745a4ab16bda4 100644 (file)
@@ -376,6 +376,8 @@ cat <<EOF
   ${SDATA}
   ${OTHER_SDATA_SECTIONS}
   ${RELOCATING+${DATA_END_SYMBOLS-_edata = .; PROVIDE (edata = .);}}
+  /* __bss_start is used by _bfd_elf_provide_section_bound_symbols in
+     elflink.c.  */
   ${RELOCATING+__bss_start = .;}
   ${RELOCATING+${OTHER_BSS_SYMBOLS}}
   ${SBSS}
This page took 0.036944 seconds and 4 git commands to generate.