|
@@ -309,6 +309,26 @@ SECTIONS
|
|
|
*(.altinstr_replacement)
|
|
|
}
|
|
|
|
|
|
+ /*
|
|
|
+ * .exit.text is discard at runtime, not link time, to deal with
|
|
|
+ * references from .altinstructions and .eh_frame
|
|
|
+ */
|
|
|
+ .exit.text : AT(ADDR(.exit.text) - LOAD_OFFSET) {
|
|
|
+ EXIT_TEXT
|
|
|
+ }
|
|
|
+
|
|
|
+ .exit.data : AT(ADDR(.exit.data) - LOAD_OFFSET) {
|
|
|
+ EXIT_DATA
|
|
|
+ }
|
|
|
+
|
|
|
+#ifdef CONFIG_BLK_DEV_INITRD
|
|
|
+ . = ALIGN(PAGE_SIZE);
|
|
|
+ .init.ramfs : AT(ADDR(.init.ramfs) - LOAD_OFFSET) {
|
|
|
+ __initramfs_start = .;
|
|
|
+ *(.init.ramfs)
|
|
|
+ __initramfs_end = .;
|
|
|
+ }
|
|
|
+#endif
|
|
|
|
|
|
#ifdef CONFIG_X86_32
|
|
|
# include "vmlinux_32.lds.S"
|