| Index: nacl/dyn-link/ldscripts/elf_nacl.x.static
|
| diff --git a/nacl/dyn-link/ldscripts/elf_nacl.x.static b/nacl/dyn-link/ldscripts/elf_nacl.x.static
|
| index 41de87a587ed3a3278750eb9ed804db03eeda037..6ed97d5cdfc96146d1836701bccfa78e5fbcd2b5 100644
|
| --- a/nacl/dyn-link/ldscripts/elf_nacl.x.static
|
| +++ b/nacl/dyn-link/ldscripts/elf_nacl.x.static
|
| @@ -14,10 +14,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
|
| {
|
| @@ -51,8 +52,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) }
|
|
|