File tree Expand file tree Collapse file tree 2 files changed +17
-1
lines changed
x86_64/intel64/qemu-intel64/scripts
x86/qemu/qemu-i486/scripts Expand file tree Collapse file tree 2 files changed +17
-1
lines changed Original file line number Diff line number Diff line change @@ -31,7 +31,15 @@ SECTIONS
31
31
_etext = ABSOLUTE (.);
32
32
}
33
33
34
- .text ALIGN (0x1000) : {
34
+ .init_section ALIGN (0x1000) :
35
+ {
36
+ _sinit = ABSOLUTE (.);
37
+ KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*)))
38
+ KEEP(*(.init_array EXCLUDE_FILE (*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o ) .ctors))
39
+ _einit = ABSOLUTE (.);
40
+ }
41
+
42
+ .rodata ALIGN (0x1000) : {
35
43
_srodata = ABSOLUTE (.);
36
44
*(.rodata .rodata.*)
37
45
*(.fixup)
Original file line number Diff line number Diff line change @@ -77,6 +77,14 @@ SECTIONS
77
77
_etext = ABSOLUTE (.);
78
78
}
79
79
80
+ .init_section ALIGN (0x1000) :
81
+ {
82
+ _sinit = ABSOLUTE (.);
83
+ KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*)))
84
+ KEEP(*(.init_array EXCLUDE_FILE (*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o ) .ctors))
85
+ . = ALIGN (4096);
86
+ _einit = ABSOLUTE (.);
87
+ }
80
88
81
89
.rodata ALIGN (0x1000) :
82
90
{
You can’t perform that action at this time.
0 commit comments