OSDN Git Service

gcc 3.1 and 3.1.1 create a .jcr ELF section, which apparently is intended to
[uclinux-h8/elf2flt.git] / elf2flt.ld
1
2 ENTRY (_start)
3
4 MEMORY {
5         flatmem : ORIGIN = 0x0, LENGTH = 0xffffff
6         junk    : ORIGIN = 0x0, LENGTH = 0x100000
7 }
8
9 SECTIONS {
10         .text 0x0 : {
11                 . = . + 4;
12                 . = ALIGN(0x4) ;
13                 _stext = . ;
14                 *(.text)
15                 *(.text.*)
16                 *(.gnu.warning)
17                 *(.stub)
18                 *(.gnu.linkonce.t*)
19                 *(.glue_7t)
20                 *(.glue_7)
21                 *(.jcr)
22                 *(.init)
23                 *(.fini)
24
25 W_RODAT         *(.rodata)
26 W_RODAT         *(.rodata1)
27 W_RODAT         *(.rodata.*)
28
29                 /* This is special code area at the end of the normal
30                    text section.  It contains a small lookup table at
31                    the start followed by the code pointed to by entries
32                    in the lookup table.  */
33                 . = ALIGN (4) ;
34                 PROVIDE(__ctbp = .);
35                 *(.call_table_data)
36                 *(.call_table_text)
37
38                 . = ALIGN(0x10) ;
39                 _etext = . ;
40         } > flatmem
41         .data : {
42                 . = ALIGN(0x4) ;
43                 _sdata = . ;
44                 __data_start = . ;
45                 data_start = . ;
46                 *(.got.plt)
47                 *(.got)
48                 LONG(-1)
49 R_RODAT         *(.rodata)
50 R_RODAT         *(.rodata1)
51 R_RODAT         *(.rodata.*)
52                 *(.gnu.linkonce.r*)
53                 *(.data)
54                 *(.data1)
55                 *(.data.*)
56                 *(.gnu.linkonce.d*)
57                 *(.data1)
58                 *(.eh_frame)
59                 *(.gcc_except_table)
60                 *(.sdata) 
61                 *(.sdata.*)
62                 *(.gnu.linkonce.s.*)
63                 *(__libc_atexit)
64                 *(__libc_subinit)
65                 *(__libc_subfreeres)
66                 *(.note.ABI-tag)
67                 . = ALIGN(4) ;
68                 *(.ctors.*)
69                 *(.ctors)
70                 LONG(0)
71                 *(.dtors.*)
72                 *(.dtors)
73                 LONG(0)
74                 . = ALIGN(0x10) ;
75                 _edata = . ;
76         } > flatmem
77         .bss : {
78                 . = ALIGN(0x4) ;
79                 _sbss = ALIGN(0x4) ;
80                 __bss_start = . ;
81                 *(.dynsbss)
82                 *(.sbss)
83                 *(.sbss.*)
84                 *(.scommon)
85                 *(.dynbss)
86                 *(.bss)
87                 *(.bss.*)
88                 *(COMMON)
89                 . = ALIGN(0x4) ;
90                 _ebss = . ;
91                 _end = . ;
92                 end = . ;
93         } > flatmem
94
95         .junk : {
96                 *(.rel*)
97                 *(.rela*)
98         } > junk
99 }