| OLD | NEW |
| 1 /* Script for ld --shared: link shared library */ | 1 /* Script for ld --shared: link shared library */ |
| 2 OUTPUT_FORMAT("elf32-nacl", "elf32-nacl", | 2 OUTPUT_FORMAT("elf32-nacl", "elf32-nacl", |
| 3 "elf32-nacl") | 3 "elf32-nacl") |
| 4 OUTPUT_ARCH(i386) | 4 OUTPUT_ARCH(i386) |
| 5 ENTRY(_start) | 5 ENTRY(_start) |
| 6 SEARCH_DIR("=/usr/local/lib32"); SEARCH_DIR("=/lib32"); SEARCH_DIR("=/usr/lib32"
); | 6 SEARCH_DIR("=/usr/local/lib32"); SEARCH_DIR("=/lib32"); SEARCH_DIR("=/usr/lib32"
); |
| 7 SEARCH_DIR("=/usr/local/lib"); SEARCH_DIR("=/lib"); SEARCH_DIR("=/usr/lib"); | 7 SEARCH_DIR("=/usr/local/lib"); SEARCH_DIR("=/lib"); SEARCH_DIR("=/usr/lib"); |
| 8 PHDRS | 8 PHDRS |
| 9 { | 9 { |
| 10 seg_code PT_LOAD FLAGS(5) ; /* read + execute */ | 10 seg_code PT_LOAD FLAGS(5) ; /* read + execute */ |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 48 PROVIDE (_etext = .); | 48 PROVIDE (_etext = .); |
| 49 PROVIDE (etext = .); | 49 PROVIDE (etext = .); |
| 50 | 50 |
| 51 . = ALIGN(SEGMENT_START("text", 0) + 0x10000000, CONSTANT (MAXPAGESIZE)); | 51 . = ALIGN(SEGMENT_START("text", 0) + 0x10000000, CONSTANT (MAXPAGESIZE)); |
| 52 .note.gnu.build-id : | 52 .note.gnu.build-id : |
| 53 { | 53 { |
| 54 PROVIDE_HIDDEN (__note_gnu_build_id_start = .); | 54 PROVIDE_HIDDEN (__note_gnu_build_id_start = .); |
| 55 *(.note.gnu.build-id) | 55 *(.note.gnu.build-id) |
| 56 PROVIDE_HIDDEN (__note_gnu_build_id_end = .); | 56 PROVIDE_HIDDEN (__note_gnu_build_id_end = .); |
| 57 } :seg_rodata :seg_note | 57 } :seg_rodata :seg_note |
| 58 .dummy : {} :seg_rodata | 58 /* :seg_rodata is on .dummy rather than on .hash to avoid breaing the linker |
| 59 script munging that glibc's Makerules does using sed. */ |
| 60 .dummy : {} :seg_rodata |
| 59 .hash : { *(.hash) } | 61 .hash : { *(.hash) } |
| 60 .gnu.hash : { *(.gnu.hash) } | 62 .gnu.hash : { *(.gnu.hash) } |
| 61 .dynsym : { *(.dynsym) } | 63 .dynsym : { *(.dynsym) } |
| 62 .dynstr : { *(.dynstr) } | 64 .dynstr : { *(.dynstr) } |
| 63 .gnu.version : { *(.gnu.version) } | 65 .gnu.version : { *(.gnu.version) } |
| 64 .gnu.version_d : { *(.gnu.version_d) } | 66 .gnu.version_d : { *(.gnu.version_d) } |
| 65 .gnu.version_r : { *(.gnu.version_r) } | 67 .gnu.version_r : { *(.gnu.version_r) } |
| 66 .rel.init : { *(.rel.init) } | 68 .rel.init : { *(.rel.init) } |
| 67 .rela.init : { *(.rela.init) } | 69 .rela.init : { *(.rela.init) } |
| 68 .rel.text : { *(.rel.text .rel.text.* .rel.gnu.linkonce.t.*) } | 70 .rel.text : { *(.rel.text .rel.text.* .rel.gnu.linkonce.t.*) } |
| (...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 232 .debug_funcnames 0 : { *(.debug_funcnames) } | 234 .debug_funcnames 0 : { *(.debug_funcnames) } |
| 233 .debug_typenames 0 : { *(.debug_typenames) } | 235 .debug_typenames 0 : { *(.debug_typenames) } |
| 234 .debug_varnames 0 : { *(.debug_varnames) } | 236 .debug_varnames 0 : { *(.debug_varnames) } |
| 235 /* DWARF 3 */ | 237 /* DWARF 3 */ |
| 236 .debug_pubtypes 0 : { *(.debug_pubtypes) } | 238 .debug_pubtypes 0 : { *(.debug_pubtypes) } |
| 237 .debug_ranges 0 : { *(.debug_ranges) } | 239 .debug_ranges 0 : { *(.debug_ranges) } |
| 238 .gnu.attributes 0 : { KEEP (*(.gnu.attributes)) } | 240 .gnu.attributes 0 : { KEEP (*(.gnu.attributes)) } |
| 239 /DISCARD/ : { *(.note.GNU-stack) *(.gnu_debuglink) } | 241 /DISCARD/ : { *(.note.GNU-stack) *(.gnu_debuglink) } |
| 240 /DISCARD/ : { *(.note.ABI-tag) } | 242 /DISCARD/ : { *(.note.ABI-tag) } |
| 241 } | 243 } |
| OLD | NEW |