* ldlang.c (exp_init_os): Handle etree_provide.
authorAlan Modra <amodra@gmail.com>
Wed, 3 Aug 2005 05:09:49 +0000 (05:09 +0000)
committerAlan Modra <amodra@gmail.com>
Wed, 3 Aug 2005 05:09:49 +0000 (05:09 +0000)
* emulparams/armelf.sh (OTHER_END_SYMBOLS): Rename from..
(OTHER_BSS_END_SYMBOLS): ..this.
* emulparams/armelf_linux.sh: Likewise.
* emulparams/armnto.sh: Likewise.
* emulparams/criself.sh: Likewise.
* emulparams/crislinux.sh: Likewise.
* emulparams/elf32frv.sh: Likewise.
* emulparams/elf32mcore.sh: Likewise.
* emulparams/elf32ppc.sh: Likewise.
* emulparams/elf32ppclinux.sh: Likewise.
* emulparams/hppa64linux.sh: Likewise.
* scripttempl/armbpabi.sc: Substitute $OTHER_END_SYMBOLS, not
$OTHER_BSS_END_SYMBOLS.
* scripttempl/elf32sh-symbian.sc: Likewise.
* scripttempl/elf_chaos.sc: Likewise.
* scripttempl/iq2000.sc: Likewise.
* scripttempl/xstormy16.sc: Likewise.
* scripttempl/elf.sc: Likewise.  Delete __bss_start comment.
* scripttempl/elfxtensa.sc: Likewise.

19 files changed:
ld/ChangeLog
ld/emulparams/armelf.sh
ld/emulparams/armelf_linux.sh
ld/emulparams/armnto.sh
ld/emulparams/criself.sh
ld/emulparams/crislinux.sh
ld/emulparams/elf32frv.sh
ld/emulparams/elf32mcore.sh
ld/emulparams/elf32ppc.sh
ld/emulparams/elf32ppclinux.sh
ld/emulparams/hppa64linux.sh
ld/ldlang.c
ld/scripttempl/armbpabi.sc
ld/scripttempl/elf.sc
ld/scripttempl/elf32sh-symbian.sc
ld/scripttempl/elf_chaos.sc
ld/scripttempl/elfxtensa.sc
ld/scripttempl/iq2000.sc
ld/scripttempl/xstormy16.sc

index 710bf8d2c2d98c4b92971e9eb782a1ab4f683260..14f2bf4ddea395a7a2f907d5201132453670ca15 100644 (file)
@@ -1,3 +1,26 @@
+2005-08-03  Alan Modra  <amodra@bigpond.net.au>
+
+       * ldlang.c (exp_init_os): Handle etree_provide.
+       * emulparams/armelf.sh (OTHER_END_SYMBOLS): Rename from..
+       (OTHER_BSS_END_SYMBOLS): ..this.
+       * emulparams/armelf_linux.sh: Likewise.
+       * emulparams/armnto.sh: Likewise.
+       * emulparams/criself.sh: Likewise.
+       * emulparams/crislinux.sh: Likewise.
+       * emulparams/elf32frv.sh: Likewise.
+       * emulparams/elf32mcore.sh: Likewise.
+       * emulparams/elf32ppc.sh: Likewise.
+       * emulparams/elf32ppclinux.sh: Likewise.
+       * emulparams/hppa64linux.sh: Likewise.
+       * scripttempl/armbpabi.sc: Substitute $OTHER_END_SYMBOLS, not
+       $OTHER_BSS_END_SYMBOLS.
+       * scripttempl/elf32sh-symbian.sc: Likewise.
+       * scripttempl/elf_chaos.sc: Likewise.
+       * scripttempl/iq2000.sc: Likewise.
+       * scripttempl/xstormy16.sc: Likewise.
+       * scripttempl/elf.sc: Likewise.  Delete __bss_start comment.
+       * scripttempl/elfxtensa.sc: Likewise.
+
 2005-07-29  Nick Clifton  <nickc@redhat.com>
 
        * ldmain.c (main): Allow -shared and -static to be used together.
index 497e1cc7f2aef07bd1d68eec0805f3e31861d52c..c3d5bd0f8474921f6af66d8791c932d1bcd7db6d 100644 (file)
@@ -8,7 +8,7 @@ TEMPLATE_NAME=elf32
 EXTRA_EM_FILE=armelf
 OTHER_TEXT_SECTIONS='*(.glue_7t) *(.glue_7)'
 OTHER_BSS_SYMBOLS='__bss_start__ = .;'
-OTHER_BSS_END_SYMBOLS='_bss_end__ = . ; __bss_end__ = . ; __end__ = . ;'
+OTHER_END_SYMBOLS='_bss_end__ = . ; __bss_end__ = . ; __end__ = . ;'
 OTHER_SECTIONS='.note.gnu.arm.ident 0 : { KEEP (*(.note.gnu.arm.ident)) }'
 OTHER_READONLY_SECTIONS="
   .ARM.extab ${RELOCATING-0} : { *(.ARM.extab${RELOCATING+* .gnu.linkonce.armextab.*}) }
index 6331d1ee9cef8bdcd1be56589fadb7e694379c08..fd927c51907583f0373c8256e5dd0769290c0b3b 100644 (file)
@@ -13,7 +13,7 @@ GENERATE_PIE_SCRIPT=yes
 DATA_START_SYMBOLS='__data_start = . ;';
 OTHER_TEXT_SECTIONS='*(.glue_7t) *(.glue_7)'
 OTHER_BSS_SYMBOLS='__bss_start__ = .;'
-OTHER_BSS_END_SYMBOLS='_bss_end__ = . ; __bss_end__ = . ; __end__ = . ;'
+OTHER_END_SYMBOLS='_bss_end__ = . ; __bss_end__ = . ; __end__ = . ;'
 OTHER_SECTIONS='.note.gnu.arm.ident 0 : { KEEP (*(.note.gnu.arm.ident)) }'
 
 TEXT_START_ADDR=0x00008000
index 7e4644bc80c07d437f183b45011291ab894051b7..7e468c09f922f164a10b04ef2364352b888f42fa 100644 (file)
@@ -8,7 +8,7 @@ TEMPLATE_NAME=elf32
 EXTRA_EM_FILE=armelf
 OTHER_TEXT_SECTIONS='*(.glue_7t) *(.glue_7)'
 OTHER_BSS_SYMBOLS='__bss_start__ = .;'
-OTHER_BSS_END_SYMBOLS='_bss_end__ = . ; __bss_end__ = . ; __end__ = . ;'
+OTHER_END_SYMBOLS='_bss_end__ = . ; __bss_end__ = . ; __end__ = . ;'
 
 DATA_START_SYMBOLS='__data_start = . ;';
 
index 8ac21f92fc96f1d078246aa6996976688e9fa96d..d63424db56cce79d0d4c59b2b956c137aad20a36 100644 (file)
@@ -42,7 +42,7 @@ OTHER_SDATA_SECTIONS="${RELOCATING+PROVIDE (__Edata = .);}"
 # address, we can't get to it with OTHER_BSS_SYMBOLS, neither can we
 # use ADDR(.bss) there.  Instead, we use the symbol support for the
 # end symbol.
-OTHER_BSS_END_SYMBOLS='
+OTHER_END_SYMBOLS='
  PROVIDE (__Ebss = .);
  PROVIDE (__end = .);
  __Sbss = ADDR (.bss);
index e54f5fbca472cbc93d2bd013381bd0e63b539ae2..8d7ba5fd796ad0c800bb6f7dd6e69bc3f102c035 100644 (file)
@@ -28,7 +28,7 @@ DATA_START_SYMBOLS='PROVIDE (__Sdata = .);'
 # Smuggle an "OTHER_DATA_END_SYMBOLS" here.
 OTHER_SDATA_SECTIONS="${RELOCATING+PROVIDE (__Edata = .);}"
 OTHER_BSS_SYMBOLS='PROVIDE (__Sbss = .);'
-OTHER_BSS_END_SYMBOLS='PROVIDE (__Ebss = .);'
+OTHER_END_SYMBOLS='PROVIDE (__Ebss = .);'
 
 # Also add the other symbols provided for rsim/xsim and elinux.
 OTHER_END_SYMBOLS='
index 042ed8c21f896ff920fd3e1a170063fd05142559..16773b716cad7df7aee2ee435ebbd18dd162dba8 100755 (executable)
@@ -7,7 +7,7 @@ MAXPAGESIZE=256
 ENTRY=_start
 EMBEDDED=yes
 OTHER_EXCLUDE_FILES='*frvend.o'
-OTHER_BSS_END_SYMBOLS='__end = .;'
+OTHER_END_SYMBOLS='__end = .;'
 DATA_START_SYMBOLS='__data_start = . ;'
 STACK_ADDR=0x200000
 NOP=0x80000000
index 930a9c3c8bcdeccb03325f4f57f4d31ed8fbdaad..242af810e780ab14330bdbe45144f96b3369e3e1 100644 (file)
@@ -22,7 +22,7 @@ EMBEDDED=yes
 NOP=0x0e0e0e0e
 
 OTHER_BSS_SYMBOLS="__bss_start__ = . ;"
-OTHER_BSS_END_SYMBOLS="__bss_end__ = . ;"
+OTHER_END_SYMBOLS="__bss_end__ = . ;"
 
 # This sets the stack to the top of the simulator memory (2^19 bytes).
 STACK_ADDR=0x80000
index b5abcbfc500019bd954218bbbfe4e49ec39cca3b..e5b22524b555411797ae8d6d0184f23ea03850f8 100644 (file)
@@ -23,7 +23,7 @@ PLT=".plt          ${RELOCATING-0} : SPECIAL { *(.plt) }"
 GOTPLT="${PLT}"
 OTHER_TEXT_SECTIONS="*(.glink)"
 EXECUTABLE_SYMBOLS='PROVIDE (__stack = 0); PROVIDE (___stack = 0);'
-OTHER_BSS_END_SYMBOLS='__end = .;'
+OTHER_END_SYMBOLS="__end = .;"
 OTHER_RELRO_SECTIONS="
   .fixup        ${RELOCATING-0} : { *(.fixup) }
   .got1         ${RELOCATING-0} : { *(.got1) }
index 9642d4a7c71c16987fdb515b40a0703baf3a3453..262731ab32e67112977cbadcd4c60f80537a73f4 100644 (file)
@@ -1,7 +1,7 @@
 . ${srcdir}/emulparams/elf32ppc.sh
 TEXT_START_ADDR=0x10000000
 unset EXECUTABLE_SYMBOLS
-unset OTHER_BSS_END_SYMBOLS
+unset OTHER_END_SYMBOLS
 test -z "${RELOCATING}" || OTHER_SECTIONS="/DISCARD/   : { *(.fixup) }"
 OTHER_RELRO_SECTIONS="
   .got1         ${RELOCATING-0} : { *(.got1) }
index 6874c4578c3adce2b85dd29ef51ce3a8d0616dcf..3e0e3e74c7bae6b9c6d8e1e51b87259a1fb9a83a 100644 (file)
@@ -34,8 +34,8 @@ OTHER_BSS_SECTIONS="
   .hbss         ${RELOCATING-0} : { *(.hbss) }
   .tbss         ${RELOCATING-0} : { *(.tbss) }
 "
-#OTHER_BSS_END_SYMBOLS='PROVIDE (__TLS_SIZE = SIZEOF (.tbss));'
-OTHER_BSS_END_SYMBOLS='
+#OTHER_END_SYMBOLS='PROVIDE (__TLS_SIZE = SIZEOF (.tbss));'
+OTHER_END_SYMBOLS='
   PROVIDE (__TLS_SIZE = 0);
   PROVIDE (__TLS_INIT_SIZE = 0);
   PROVIDE (__TLS_INIT_START = 0);
index 7cdb7c8c68860b30383e9c5a9fdeb37f7fe08d11..038af17b3b492a727e4cb4bb43d57a4df8cbf35e 100644 (file)
@@ -1616,6 +1616,7 @@ exp_init_os (etree_type *exp)
   switch (exp->type.node_class)
     {
     case etree_assign:
+    case etree_provide:
       exp_init_os (exp->assign.src);
       break;
 
index 28bac1f5d66a5fca40694427f7f68da016eac956..fb4656fb1132da938eb90a719839ee3c99860ab8 100644 (file)
@@ -296,7 +296,7 @@ cat <<EOF
   ${OTHER_BSS_SECTIONS}
   ${RELOCATING+. = ALIGN(${ALIGNMENT});}
   ${RELOCATING+_end = .;}
-  ${RELOCATING+${OTHER_BSS_END_SYMBOLS}}
+  ${RELOCATING+${OTHER_END_SYMBOLS}}
   ${RELOCATING+PROVIDE (end = .);}
   ${RELOCATING+${DATA_SEGMENT_END}}
 
index e1ac9e64a150cb76ee8d1d3b9f45f837d3c3a644..741d5294af9c0c3144faa32cd66cfc2d2cd04589 100644 (file)
@@ -415,8 +415,6 @@ 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}
@@ -435,9 +433,9 @@ cat <<EOF
   }
   ${LBSS}
   ${OTHER_BSS_SECTIONS}
-  ${RELOCATING+${OTHER_BSS_END_SYMBOLS}}
   ${LARGE_SECTIONS}
   ${RELOCATING+. = ALIGN(${ALIGNMENT});}
+  ${RELOCATING+${OTHER_END_SYMBOLS}}
   ${RELOCATING+_end = .;}
   ${RELOCATING+PROVIDE (end = .);}
   ${RELOCATING+${DATA_SEGMENT_END}}
index abc75d3d0a39f81af66b37a3f5210b2a5275be1a..7f177c974ddbc66dd08bd09a0899dd440cc30f84 100644 (file)
@@ -260,7 +260,7 @@ SECTIONS
   ${OTHER_BSS_SECTIONS}
   ${RELOCATING+. = ALIGN(${ALIGNMENT});}
   ${RELOCATING+_end = .;}
-  ${RELOCATING+${OTHER_BSS_END_SYMBOLS}}
+  ${RELOCATING+${OTHER_END_SYMBOLS}}
   ${RELOCATING+PROVIDE (end = .);}
   ${RELOCATING+${DATA_SEGMENT_END}}
 
index 35812898e1d376d643d721009c5479f67b997f7c..11e7291183d5974dbda455700ed39f4d04c0745e 100644 (file)
@@ -301,7 +301,7 @@ cat <<EOF
   ${OTHER_BSS_SECTIONS}
   ${RELOCATING+. = ALIGN(${ALIGNMENT});}
   ${RELOCATING+_end = .;}
-  ${RELOCATING+${OTHER_BSS_END_SYMBOLS}}
+  ${RELOCATING+${OTHER_END_SYMBOLS}}
   ${RELOCATING+PROVIDE (end = .);}
 
   /* Stabs debugging sections.  */
index 94ebe464085e84b3fb5f35648b420d347f43c781..6b594c6395c4b3aa4cb6581cee16e2f168920d27 100644 (file)
@@ -390,8 +390,6 @@ 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}
@@ -409,7 +407,7 @@ cat <<EOF
   ${OTHER_BSS_SECTIONS}
   ${RELOCATING+. = ALIGN(${ALIGNMENT});}
   ${RELOCATING+_end = .;}
-  ${RELOCATING+${OTHER_BSS_END_SYMBOLS}}
+  ${RELOCATING+${OTHER_END_SYMBOLS}}
   ${RELOCATING+PROVIDE (end = .);}
   ${RELOCATING+${DATA_SEGMENT_END}}
 
index db3a597ddbb49ccc0e6faa83a201236dff568f47..ddff5ffcf571479f891545b24c39e64fa6fb5019 100644 (file)
@@ -391,7 +391,7 @@ cat <<EOF
   ${RELOCATING+${OTHER_BSS_SECTIONS}}
   ${RELOCATING+. = ALIGN(${ALIGNMENT});}
   ${RELOCATING+_end = .;}
-  ${RELOCATING+${OTHER_BSS_END_SYMBOLS}}
+  ${RELOCATING+${OTHER_END_SYMBOLS}}
   ${RELOCATING+PROVIDE (end = .);}
 
   /* Stabs debugging sections.  */
index 21c8f616f7c6e96fdecff7132b0b73545378ef0e..92a80ab26502f25cea608b7c7b448016cd69c1c5 100644 (file)
@@ -148,7 +148,7 @@ SECTIONS
   ${RELOCATING+. = ALIGN(${ALIGNMENT});}
   ${RELOCATING+_end = .;}
   ${RELOCATING+__stack = .;}
-  ${RELOCATING+${OTHER_BSS_END_SYMBOLS}}
+  ${RELOCATING+${OTHER_END_SYMBOLS}}
   ${RELOCATING+PROVIDE (end = .);}
 
   /* Read-only sections in ROM.  */