diff options
author | Roland McGrath <roland@redhat.com> | 2007-10-15 23:43:33 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-10-16 13:01:50 -0400 |
commit | 558da7561e3362d4ec3a62e5994235d21651d802 (patch) | |
tree | 44f1c434b90c7626906ff065eba9318bd8edc1e2 /arch | |
parent | c4eecc99538db762d8d058ebf89d3f05c5526ce6 (diff) |
powerpc64 vDSO: linker script indentation
This cleans up the formatting in the vDSO linker script, mostly just the
use of whitespace. It's intended to approximate the kernel standard
conventions for indenting C, treating elements of the linker script about
like initialized variable definitions.
Signed-off-by: Roland McGrath <roland@redhat.com>
Acked-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: Sam Ravnborg <sam@ravnborg.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/powerpc/kernel/vdso64/vdso64.lds.S | 225 |
1 files changed, 122 insertions, 103 deletions
diff --git a/arch/powerpc/kernel/vdso64/vdso64.lds.S b/arch/powerpc/kernel/vdso64/vdso64.lds.S index 2d70f35d50b5..932b3fdb34b9 100644 --- a/arch/powerpc/kernel/vdso64/vdso64.lds.S +++ b/arch/powerpc/kernel/vdso64/vdso64.lds.S | |||
@@ -10,100 +10,114 @@ ENTRY(_start) | |||
10 | 10 | ||
11 | SECTIONS | 11 | SECTIONS |
12 | { | 12 | { |
13 | . = VDSO64_LBASE + SIZEOF_HEADERS; | 13 | . = VDSO64_LBASE + SIZEOF_HEADERS; |
14 | .hash : { *(.hash) } :text | 14 | |
15 | .gnu.hash : { *(.gnu.hash) } | 15 | .hash : { *(.hash) } :text |
16 | .dynsym : { *(.dynsym) } | 16 | .gnu.hash : { *(.gnu.hash) } |
17 | .dynstr : { *(.dynstr) } | 17 | .dynsym : { *(.dynsym) } |
18 | .gnu.version : { *(.gnu.version) } | 18 | .dynstr : { *(.dynstr) } |
19 | .gnu.version_d : { *(.gnu.version_d) } | 19 | .gnu.version : { *(.gnu.version) } |
20 | .gnu.version_r : { *(.gnu.version_r) } | 20 | .gnu.version_d : { *(.gnu.version_d) } |
21 | 21 | .gnu.version_r : { *(.gnu.version_r) } | |
22 | .note : { *(.note.*) } :text :note | 22 | |
23 | 23 | .note : { *(.note.*) } :text :note | |
24 | . = ALIGN (16); | 24 | |
25 | .text : | 25 | . = ALIGN(16); |
26 | { | 26 | .text : { |
27 | *(.text .stub .text.* .gnu.linkonce.t.*) | 27 | *(.text .stub .text.* .gnu.linkonce.t.*) |
28 | *(.sfpr .glink) | 28 | *(.sfpr .glink) |
29 | } :text | 29 | } :text |
30 | PROVIDE (__etext = .); | 30 | PROVIDE(__etext = .); |
31 | PROVIDE (_etext = .); | 31 | PROVIDE(_etext = .); |
32 | PROVIDE (etext = .); | 32 | PROVIDE(etext = .); |
33 | 33 | ||
34 | . = ALIGN(8); | 34 | . = ALIGN(8); |
35 | __ftr_fixup : { | 35 | __ftr_fixup : { *(__ftr_fixup) } |
36 | *(__ftr_fixup) | 36 | |
37 | } | 37 | . = ALIGN(8); |
38 | 38 | __fw_ftr_fixup : { *(__fw_ftr_fixup) } | |
39 | . = ALIGN(8); | 39 | |
40 | __fw_ftr_fixup : { | 40 | /* |
41 | *(__fw_ftr_fixup) | 41 | * Other stuff is appended to the text segment: |
42 | } | 42 | */ |
43 | 43 | .rodata : { *(.rodata .rodata.* .gnu.linkonce.r.*) } | |
44 | /* Other stuff is appended to the text segment: */ | 44 | .rodata1 : { *(.rodata1) } |
45 | .rodata : { *(.rodata .rodata.* .gnu.linkonce.r.*) } | 45 | |
46 | .rodata1 : { *(.rodata1) } | 46 | .eh_frame_hdr : { *(.eh_frame_hdr) } :text :eh_frame_hdr |
47 | .eh_frame_hdr : { *(.eh_frame_hdr) } :text :eh_frame_hdr | 47 | .eh_frame : { KEEP (*(.eh_frame)) } :text |
48 | .eh_frame : { KEEP (*(.eh_frame)) } :text | 48 | .gcc_except_table : { *(.gcc_except_table) } |
49 | .gcc_except_table : { *(.gcc_except_table) } | 49 | |
50 | 50 | .opd ALIGN(8) : { KEEP (*(.opd)) } | |
51 | .opd ALIGN(8) : { KEEP (*(.opd)) } | 51 | .got ALIGN(8) : { *(.got .toc) } |
52 | .got ALIGN(8) : { *(.got .toc) } | 52 | .rela.dyn ALIGN(8) : { *(.rela.dyn) } |
53 | .rela.dyn ALIGN(8) : { *(.rela.dyn) } | 53 | |
54 | 54 | .dynamic : { *(.dynamic) } :text :dynamic | |
55 | .dynamic : { *(.dynamic) } :text :dynamic | 55 | |
56 | 56 | _end = .; | |
57 | _end = .; | 57 | PROVIDE(end = .); |
58 | PROVIDE (end = .); | 58 | |
59 | 59 | /* | |
60 | /* Stabs debugging sections are here too | 60 | * Stabs debugging sections are here too. |
61 | */ | 61 | */ |
62 | .stab 0 : { *(.stab) } | 62 | .stab 0 : { *(.stab) } |
63 | .stabstr 0 : { *(.stabstr) } | 63 | .stabstr 0 : { *(.stabstr) } |
64 | .stab.excl 0 : { *(.stab.excl) } | 64 | .stab.excl 0 : { *(.stab.excl) } |
65 | .stab.exclstr 0 : { *(.stab.exclstr) } | 65 | .stab.exclstr 0 : { *(.stab.exclstr) } |
66 | .stab.index 0 : { *(.stab.index) } | 66 | .stab.index 0 : { *(.stab.index) } |
67 | .stab.indexstr 0 : { *(.stab.indexstr) } | 67 | .stab.indexstr 0 : { *(.stab.indexstr) } |
68 | .comment 0 : { *(.comment) } | 68 | .comment 0 : { *(.comment) } |
69 | /* DWARF debug sectio/ns. | 69 | |
70 | Symbols in the DWARF debugging sections are relative to the beginning | 70 | /* |
71 | of the section so we begin them at 0. */ | 71 | * DWARF debug sections. |
72 | /* DWARF 1 */ | 72 | * Symbols in the DWARF debugging sections are relative to the beginning |
73 | .debug 0 : { *(.debug) } | 73 | * of the section so we begin them at 0. |
74 | .line 0 : { *(.line) } | 74 | */ |
75 | /* GNU DWARF 1 extensions */ | 75 | /* DWARF 1 */ |
76 | .debug_srcinfo 0 : { *(.debug_srcinfo) } | 76 | .debug 0 : { *(.debug) } |
77 | .debug_sfnames 0 : { *(.debug_sfnames) } | 77 | .line 0 : { *(.line) } |
78 | /* DWARF 1.1 and DWARF 2 */ | 78 | /* GNU DWARF 1 extensions */ |
79 | .debug_aranges 0 : { *(.debug_aranges) } | 79 | .debug_srcinfo 0 : { *(.debug_srcinfo) } |
80 | .debug_pubnames 0 : { *(.debug_pubnames) } | 80 | .debug_sfnames 0 : { *(.debug_sfnames) } |
81 | /* DWARF 2 */ | 81 | /* DWARF 1.1 and DWARF 2 */ |
82 | .debug_info 0 : { *(.debug_info .gnu.linkonce.wi.*) } | 82 | .debug_aranges 0 : { *(.debug_aranges) } |
83 | .debug_abbrev 0 : { *(.debug_abbrev) } | 83 | .debug_pubnames 0 : { *(.debug_pubnames) } |
84 | .debug_line 0 : { *(.debug_line) } | 84 | /* DWARF 2 */ |
85 | .debug_frame 0 : { *(.debug_frame) } | 85 | .debug_info 0 : { *(.debug_info .gnu.linkonce.wi.*) } |
86 | .debug_str 0 : { *(.debug_str) } | 86 | .debug_abbrev 0 : { *(.debug_abbrev) } |
87 | .debug_loc 0 : { *(.debug_loc) } | 87 | .debug_line 0 : { *(.debug_line) } |
88 | .debug_macinfo 0 : { *(.debug_macinfo) } | 88 | .debug_frame 0 : { *(.debug_frame) } |
89 | /* SGI/MIPS DWARF 2 extensions */ | 89 | .debug_str 0 : { *(.debug_str) } |
90 | .debug_weaknames 0 : { *(.debug_weaknames) } | 90 | .debug_loc 0 : { *(.debug_loc) } |
91 | .debug_funcnames 0 : { *(.debug_funcnames) } | 91 | .debug_macinfo 0 : { *(.debug_macinfo) } |
92 | .debug_typenames 0 : { *(.debug_typenames) } | 92 | /* SGI/MIPS DWARF 2 extensions */ |
93 | .debug_varnames 0 : { *(.debug_varnames) } | 93 | .debug_weaknames 0 : { *(.debug_weaknames) } |
94 | 94 | .debug_funcnames 0 : { *(.debug_funcnames) } | |
95 | /DISCARD/ : { *(.note.GNU-stack) } | 95 | .debug_typenames 0 : { *(.debug_typenames) } |
96 | /DISCARD/ : { *(.branch_lt) } | 96 | .debug_varnames 0 : { *(.debug_varnames) } |
97 | /DISCARD/ : { *(.data .data.* .gnu.linkonce.d.*) } | 97 | |
98 | /DISCARD/ : { *(.bss .sbss .dynbss .dynsbss) } | 98 | /DISCARD/ : { |
99 | *(.note.GNU-stack) | ||
100 | *(.branch_lt) | ||
101 | *(.data .data.* .gnu.linkonce.d.* .sdata*) | ||
102 | *(.bss .sbss .dynbss .dynsbss) | ||
103 | } | ||
99 | } | 104 | } |
100 | 105 | ||
106 | /* | ||
107 | * Very old versions of ld do not recognize this name token; use the constant. | ||
108 | */ | ||
109 | #define PT_GNU_EH_FRAME 0x6474e550 | ||
110 | |||
111 | /* | ||
112 | * We must supply the ELF program headers explicitly to get just one | ||
113 | * PT_LOAD segment, and set the flags explicitly to make segments read-only. | ||
114 | */ | ||
101 | PHDRS | 115 | PHDRS |
102 | { | 116 | { |
103 | text PT_LOAD FILEHDR PHDRS FLAGS(5); /* PF_R|PF_X */ | 117 | text PT_LOAD FILEHDR PHDRS FLAGS(5); /* PF_R|PF_X */ |
104 | note PT_NOTE FLAGS(4); /* PF_R */ | 118 | dynamic PT_DYNAMIC FLAGS(4); /* PF_R */ |
105 | dynamic PT_DYNAMIC FLAGS(4); /* PF_R */ | 119 | note PT_NOTE FLAGS(4); /* PF_R */ |
106 | eh_frame_hdr 0x6474e550; /* PT_GNU_EH_FRAME, but ld doesn't match the name */ | 120 | eh_frame_hdr PT_GNU_EH_FRAME; |
107 | } | 121 | } |
108 | 122 | ||
109 | /* | 123 | /* |
@@ -111,17 +125,22 @@ PHDRS | |||
111 | */ | 125 | */ |
112 | VERSION | 126 | VERSION |
113 | { | 127 | { |
114 | VDSO_VERSION_STRING { | 128 | VDSO_VERSION_STRING { |
115 | global: | 129 | global: |
116 | __kernel_datapage_offset; /* Has to be there for the kernel to find */ | 130 | /* |
117 | __kernel_get_syscall_map; | 131 | * Has to be there for the kernel to find |
118 | __kernel_gettimeofday; | 132 | */ |
119 | __kernel_clock_gettime; | 133 | __kernel_datapage_offset; |
120 | __kernel_clock_getres; | 134 | |
121 | __kernel_get_tbfreq; | 135 | __kernel_get_syscall_map; |
122 | __kernel_sync_dicache; | 136 | __kernel_gettimeofday; |
123 | __kernel_sync_dicache_p5; | 137 | __kernel_clock_gettime; |
124 | __kernel_sigtramp_rt64; | 138 | __kernel_clock_getres; |
125 | local: *; | 139 | __kernel_get_tbfreq; |
126 | }; | 140 | __kernel_sync_dicache; |
141 | __kernel_sync_dicache_p5; | ||
142 | __kernel_sigtramp_rt64; | ||
143 | |||
144 | local: *; | ||
145 | }; | ||
127 | } | 146 | } |