source: mainline/uspace/lib/libc/arch/amd64/_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: 554 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 . = 0x1000 + SIZEOF_HEADERS;
11
12 .init : {
13 *(.init);
14 } :text
15 .text : {
16 *(.text);
17 *(.rodata*);
18 } :text
19
20 . = . + 0x1000;
21
22 .data : {
23 *(.data);
24 } :data
25 .tdata : {
26 _tdata_start = .;
27 *(.tdata);
28 _tdata_end = .;
29 _tbss_start = .;
30 *(.tbss);
31 _tbss_end = .;
32 } :data
33 _tls_alignment = ALIGNOF(.tdata);
34 .bss : {
35 *(COMMON);
36 *(.bss);
37 } :data
38
39 . = ALIGN(0x1000);
40 _heap = .;
41
42 /DISCARD/ : {
43 *(*);
44 }
45
46}
Note: See TracBrowser for help on using the repository browser.