source: mainline/uspace/lib/libc/arch/sparc64/_link.ld.in@ 58d5803d

lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
Last change on this file since 58d5803d was e622f0a8, checked in by Jakub Jermar <jakub@…>, 16 years ago

Put .tbss section into the .tdata output section.
This solves the .tbss alignment issue seen on amd64.

  • Property mode set to 100644
File size: 622 bytes
Line 
1STARTUP(LIBC_PREFIX/arch/UARCH/src/entry.o)
2ENTRY(__entry)
3
4PHDRS {
5 text PT_LOAD FLAGS(5);
6 data PT_LOAD FLAGS(6);
7}
8
9SECTIONS {
10 . = 0x4000 + SIZEOF_HEADERS;
11
12 .init : {
13 *(.init);
14 } :text
15 .text : {
16 *(.text);
17 *(.rodata*);
18 } :text
19
20 . = . + 0x4000;
21
22 .got : {
23 _gp = .;
24 *(.got*);
25 } :data
26 .data : {
27 *(.data);
28 *(.sdata);
29 } :data
30 .tdata : {
31 _tdata_start = .;
32 *(.tdata);
33 _tdata_end = .;
34 _tbss_start = .;
35 *(.tbss);
36 _tbss_end = .;
37 } :data
38 _tls_alignment = ALIGNOF(.tdata);
39 .bss : {
40 *(.sbss);
41 *(COMMON);
42 *(.bss);
43 } :data
44
45 . = ALIGN(0x4000);
46 _heap = .;
47
48 /DISCARD/ : {
49 *(*);
50 }
51
52}
Note: See TracBrowser for help on using the repository browser.