The section name seems to have significance for some versions of binutils. There is no way to instruct gcc that sections such as .bss16 contain uninitialised data; it will emit them with contents explicitly set to zero. We therefore have to rely on the linker script to force these sections to become uninitialised-data sections. We do this by marking them as NOLOAD; this seems to be the closest semantic equivalent in the linker script language. However, this gets ignored by some versions of ld (including 2.17 as shipped with Debian Etch), which mark the resulting sections with (CONTENTS,ALLOC,LOAD,DATA). Combined with the fact that this version of ld seems to ignore the specified LMA for these sections, this means that they end up overlapping other sections, and so parts of .prefix (for example) get obliterated by .data16's bss section. Rename the .bss sections from .section_bss to .bss.section; this seems to cause these versions of ld to treat them as uninitialised data.tags/v0.9.6
|
||
28 | 28 |
|
29 | 29 |
|
30 | 30 |
|
31 |
|
|
31 |
|
|
32 | 32 |
|
33 | 33 |
|
34 | 34 |
|
|
||
45 | 45 |
|
46 | 46 |
|
47 | 47 |
|
48 |
|
|
48 |
|
|
49 | 49 |
|
50 | 50 |
|
51 | 51 |
|
|
||
62 | 62 |
|
63 | 63 |
|
64 | 64 |
|
65 |
|
|
65 |
|
|
66 | 66 |
|
67 | 67 |
|
68 | 68 |
|
|
||
86 | 86 |
|
87 | 87 |
|
88 | 88 |
|
89 |
|
|
89 |
|
|
90 | 90 |
|
91 | 91 |
|
92 | 92 |
|
|
||
102 | 102 |
|
103 | 103 |
|
104 | 104 |
|
105 |
|
|
105 |
|
|
106 | 106 |
|
107 | 107 |
|
108 | 108 |
|
|
||
121 | 121 |
|
122 | 122 |
|
123 | 123 |
|
124 |
|
|
124 |
|
|
125 | 125 |
|
126 | 126 |
|
127 | 127 |
|
|
||
34 | 34 |
|
35 | 35 |
|
36 | 36 |
|
37 |
|
|
37 |
|
|
38 | 38 |
|
39 | 39 |
|
40 | 40 |
|
|
||
52 | 52 |
|
53 | 53 |
|
54 | 54 |
|
55 |
|
|
55 |
|
|
56 | 56 |
|
57 | 57 |
|
58 | 58 |
|
|
||
71 | 71 |
|
72 | 72 |
|
73 | 73 |
|
74 |
|
|
74 |
|
|
75 | 75 |
|
76 | 76 |
|
77 | 77 |
|
|
||
98 | 98 |
|
99 | 99 |
|
100 | 100 |
|
101 |
|
|
101 |
|
|
102 | 102 |
|
103 | 103 |
|
104 | 104 |
|
|
||
119 | 119 |
|
120 | 120 |
|
121 | 121 |
|
122 |
|
|
122 |
|
|
123 | 123 |
|
124 | 124 |
|
125 | 125 |
|