diff options
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/rmodule.ld | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/lib/rmodule.ld b/src/lib/rmodule.ld index c8bd297e51..41d6357fe1 100644 --- a/src/lib/rmodule.ld +++ b/src/lib/rmodule.ld @@ -37,11 +37,17 @@ SECTIONS .text : AT (_payload_begin_offset) { /* C code of the module. */ + *(.textfirst); *(.text); *(.text.*); /* C read-only data. */ . = ALIGN(16); + __CTOR_LIST__ = .; + *(.ctors); + LONG(0); + __CTOR_END__ = .; + /* The driver sections are to allow linking coreboot's * ramstage with the rmodule linker. Any changes made in * coreboot_ram.ld should be made here as well. */ |