* scripttempl/elfxtensa.sc: Merge ENTRY and .note.gnu.build-id
authorBob Wilson <bob.wilson@acm.org>
Fri, 18 Jan 2008 22:49:38 +0000 (22:49 +0000)
committerBob Wilson <bob.wilson@acm.org>
Fri, 18 Jan 2008 22:49:38 +0000 (22:49 +0000)
changes from elf.sc.

ld/ChangeLog
ld/scripttempl/elfxtensa.sc

index 3c479db..c8e6b5b 100644 (file)
@@ -1,3 +1,8 @@
+2008-01-18  Bob Wilson  <bob.wilson@acm.org>
+
+       * scripttempl/elfxtensa.sc: Merge ENTRY and .note.gnu.build-id
+       changes from elf.sc.
+       
 2008-01-16  Alan Modra  <amodra@bigpond.net.au>
 
        * ldlang.c (lang_size_sections_1): Simplify SEC_NEVER_LOAD test.
index 60115b8..368b1cd 100644 (file)
@@ -264,7 +264,7 @@ else
 fi
 
 cat <<EOF
-ENTRY(${ENTRY})
+${RELOCATING+ENTRY(${ENTRY})}
 
 ${RELOCATING+${LIB_SEARCH_DIRS}}
 ${RELOCATING+${EXECUTABLE_SYMBOLS}}
@@ -281,6 +281,7 @@ SECTIONS
   ${CREATE_SHLIB+${RELOCATING+. = ${SHLIB_TEXT_START_ADDR:-0} + SIZEOF_HEADERS;}}
   ${CREATE_PIE+${RELOCATING+. = ${SHLIB_TEXT_START_ADDR:-0} + SIZEOF_HEADERS;}}
   ${INITIAL_READONLY_SECTIONS}
+  .note.gnu.build-id : { *(.note.gnu.build-id) }
   ${TEXT_DYNAMIC+${DYNAMIC}}
   .hash         ${RELOCATING-0} : { *(.hash) }
   .gnu.hash     ${RELOCATING-0} : { *(.gnu.hash) }