Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(408)

Unified Diff: nacl/dyn-link/ldscripts/elf64_nacl.x.static

Issue 21636003: Add a PT_NOTE section to mark build_id. (Closed) Base URL: http://git.chromium.org/native_client/nacl-glibc.git@master
Patch Set: Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: nacl/dyn-link/ldscripts/elf64_nacl.x.static
diff --git a/nacl/dyn-link/ldscripts/elf64_nacl.x.static b/nacl/dyn-link/ldscripts/elf64_nacl.x.static
index e5840b7c2eac7acb34dcc5805911aca99544f9d6..368ed287ce8f6c6415a15411f06f4219c469bc61 100644
--- a/nacl/dyn-link/ldscripts/elf64_nacl.x.static
+++ b/nacl/dyn-link/ldscripts/elf64_nacl.x.static
@@ -13,10 +13,11 @@ SEARCH_DIR("=/usr/local/lib"); SEARCH_DIR("=/lib"); SEARCH_DIR("=/usr/lib");
PHDRS
{
headers PT_PHDR FILEHDR PHDRS ; /* put the headers in a non-loadable seg */
- seg_code PT_LOAD FLAGS(5) ; /* read + execute */
- seg_rodata PT_LOAD FLAGS(4) ; /* read */
- seg_tls PT_TLS FLAGS(4) ;
- seg_rwdata PT_LOAD FLAGS(6) ; /* read + write */
+ seg_code PT_LOAD FLAGS(5) ; /* read + execute */
+ seg_rodata PT_LOAD FLAGS(4) ; /* read */
+ seg_tls PT_TLS FLAGS(4) ;
+ seg_rwdata PT_LOAD FLAGS(6) ; /* read + write */
+ seg_build_id PT_NOTE FLAGS(4) ;
}
SECTIONS
{
@@ -50,8 +51,8 @@ SECTIONS
PROVIDE_HIDDEN (__note_gnu_build_id_start = .);
*(.note.gnu.build-id)
PROVIDE_HIDDEN (__note_gnu_build_id_end = .);
- } :seg_rodata
- .hash : { *(.hash) }
+ } :seg_rodata :seg_build_id
+ .hash : { *(.hash) } :seg_rodata
.gnu.hash : { *(.gnu.hash) }
.dynsym : { *(.dynsym) }
.dynstr : { *(.dynstr) }

Powered by Google App Engine
This is Rietveld 408576698