This repository was archived by the owner on Nov 28, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +11
-13
lines changed Expand file tree Collapse file tree 1 file changed +11
-13
lines changed Original file line number Diff line number Diff line change @@ -24,15 +24,15 @@ SECTIONS
24
24
*(.rodata .rodata.*);
25
25
} > FLASH
26
26
27
- PROVIDE (_sbss = ORIGIN (RAM));
28
- .bss ALIGN (_sbss,4) :
27
+ .bss :
29
28
{
29
+ _sbss = .;
30
30
*(.bss .bss.*);
31
31
. = ALIGN (4);
32
32
_ebss = .;
33
33
} > RAM
34
34
35
- .data _ebss :
35
+ .data _ebss : AT(LOADADDR(.rodata) + SIZEOF (.rodata))
36
36
{
37
37
_sidata = LOADADDR (.data);
38
38
_sdata = .;
@@ -41,41 +41,39 @@ SECTIONS
41
41
*(.data .data.*);
42
42
. = ALIGN (4);
43
43
_edata = .;
44
- } > RAM AT > FLASH /* LLD fails on AT > FLASH */
44
+ } > RAM
45
45
46
46
PROVIDE (_heap_size = 0);
47
47
48
48
/* fictitious region that represents the memory available for the heap */
49
- .heap _edata (INFO ) : ALIGN (4)
49
+ .heap _edata (NOLOAD ) :
50
50
{
51
51
_sheap = .;
52
52
. += _heap_size;
53
53
. = ALIGN (4);
54
54
_eheap = .;
55
- }
55
+ } > RAM
56
56
57
57
/* fictitious region that represents the memory available for the stack */
58
- .stack _eheap (INFO ) : ALIGN (4)
58
+ .stack _eheap (NOLOAD ) :
59
59
{
60
60
_estack = .;
61
61
. = _stack_start;
62
62
_sstack = .;
63
- }
63
+ } > RAM
64
64
65
65
/* fake output .got section */
66
66
/* Dynamic relocations are unsupported. This section is only used to detect
67
67
relocatable code in the input files and raise an error if relocatable code
68
68
is found */
69
- .got :
69
+ .got (NOLOAD) :
70
70
{
71
- _sgot = .;
72
71
KEEP(*(.got .got.*));
73
- _egot = .;
74
- } > RAM AT > FLASH /* LLD fails on AT > FLASH */
72
+ }
75
73
}
76
74
77
75
/* Do not exceed this mark in the error messages below | */
78
- ASSERT (_sgot == _egot , "
76
+ ASSERT (SIZEOF(.got ) == 0 , "
79
77
.got section detected in the input files. Dynamic relocations are not
80
78
supported. If you are linking to C code compiled using the `gcc` crate
81
79
then modify your build script to compile the C code _without_ the
You can’t perform that action at this time.
0 commit comments