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) } |