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

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

Issue 22527004: Drop section rewriting and format fixes. (Closed) Base URL: http://git.chromium.org/native_client/nacl-glibc.git@master
Patch Set: fixes Created 7 years, 4 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 unified diff | Download patch
« no previous file with comments | « nacl/dyn-link/ldscripts/elf64_nacl.xs ('k') | nacl/dyn-link/ldscripts/elf_nacl.x » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* Linker script for glibc static linking. 1 /* Linker script for glibc static linking.
2 Usage: path_to_sdk/bin/nacl-gcc [usual options] -static 2 Usage: path_to_sdk/bin/nacl-gcc [usual options] -static
3 -T path-to-toolchain/x86_64-nacl/lib/ldscripts/elf64_nacl.x.static 3 -T path-to-toolchain/x86_64-nacl/lib/ldscripts/elf64_nacl.x.static
4 4
5 TODO(mseaborn): Make this work with "-static" on its own. 5 TODO(mseaborn): Make this work with "-static" on its own.
6 See http://code.google.com/p/nativeclient/issues/detail?id=1198 6 See http://code.google.com/p/nativeclient/issues/detail?id=1198
7 */ 7 */
8 OUTPUT_FORMAT("elf64-nacl", "elf64-nacl", 8 OUTPUT_FORMAT("elf64-nacl", "elf64-nacl",
9 "elf64-nacl") 9 "elf64-nacl")
10 OUTPUT_ARCH(i386:x86-64) 10 OUTPUT_ARCH(i386:x86-64)
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 PROVIDE (etext = .); 45 PROVIDE (etext = .);
46 46
47 . = DEFINED(__nacl_rodata_start) ? __nacl_rodata_start : .; 47 . = DEFINED(__nacl_rodata_start) ? __nacl_rodata_start : .;
48 . = ALIGN(CONSTANT (MAXPAGESIZE)); /* nacl wants page alignment */ 48 . = ALIGN(CONSTANT (MAXPAGESIZE)); /* nacl wants page alignment */
49 .note.gnu.build-id : 49 .note.gnu.build-id :
50 { 50 {
51 PROVIDE_HIDDEN (__note_gnu_build_id_start = .); 51 PROVIDE_HIDDEN (__note_gnu_build_id_start = .);
52 *(.note.gnu.build-id) 52 *(.note.gnu.build-id)
53 PROVIDE_HIDDEN (__note_gnu_build_id_end = .); 53 PROVIDE_HIDDEN (__note_gnu_build_id_end = .);
54 } :seg_rodata :seg_note 54 } :seg_rodata :seg_note
55 .dummy : {} :seg_rodata 55 /* :seg_rodata is on .dummy rather than on .hash to avoid breaking the linker
56 .hash : { *(.hash) } 56 script munging that glibc's Makerules does using sed. */
57 .dummy : {} :seg_rodata
58 .hash : { *(.hash) }
57 .gnu.hash : { *(.gnu.hash) } 59 .gnu.hash : { *(.gnu.hash) }
58 .dynsym : { *(.dynsym) } 60 .dynsym : { *(.dynsym) }
59 .dynstr : { *(.dynstr) } 61 .dynstr : { *(.dynstr) }
60 .gnu.version : { *(.gnu.version) } 62 .gnu.version : { *(.gnu.version) }
61 .gnu.version_d : { *(.gnu.version_d) } 63 .gnu.version_d : { *(.gnu.version_d) }
62 .gnu.version_r : { *(.gnu.version_r) } 64 .gnu.version_r : { *(.gnu.version_r) }
63 .rel.init : { *(.rel.init) } 65 .rel.init : { *(.rel.init) }
64 .rel.text : { *(.rel.text .rel.text.* .rel.gnu.linkonce.t.*) } 66 .rel.text : { *(.rel.text .rel.text.* .rel.gnu.linkonce.t.*) }
65 .rel.fini : { *(.rel.fini) } 67 .rel.fini : { *(.rel.fini) }
66 .rel.rodata : { *(.rel.rodata .rel.rodata.* .rel.gnu.linkonce.r.*) } 68 .rel.rodata : { *(.rel.rodata .rel.rodata.* .rel.gnu.linkonce.r.*) }
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
205 .debug_funcnames 0 : { *(.debug_funcnames) } 207 .debug_funcnames 0 : { *(.debug_funcnames) }
206 .debug_typenames 0 : { *(.debug_typenames) } 208 .debug_typenames 0 : { *(.debug_typenames) }
207 .debug_varnames 0 : { *(.debug_varnames) } 209 .debug_varnames 0 : { *(.debug_varnames) }
208 /* DWARF 3 */ 210 /* DWARF 3 */
209 .debug_pubtypes 0 : { *(.debug_pubtypes) } 211 .debug_pubtypes 0 : { *(.debug_pubtypes) }
210 .debug_ranges 0 : { *(.debug_ranges) } 212 .debug_ranges 0 : { *(.debug_ranges) }
211 .gnu.attributes 0 : { KEEP (*(.gnu.attributes)) } 213 .gnu.attributes 0 : { KEEP (*(.gnu.attributes)) }
212 /DISCARD/ : { *(.note.GNU-stack) *(.gnu_debuglink) } 214 /DISCARD/ : { *(.note.GNU-stack) *(.gnu_debuglink) }
213 /DISCARD/ : { *(.note.ABI-tag) } 215 /DISCARD/ : { *(.note.ABI-tag) }
214 } 216 }
OLDNEW
« no previous file with comments | « nacl/dyn-link/ldscripts/elf64_nacl.xs ('k') | nacl/dyn-link/ldscripts/elf_nacl.x » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698