summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Braun <rbraun@sceen.net>2018-04-08 12:30:11 +0200
committerRichard Braun <rbraun@sceen.net>2018-04-08 12:30:11 +0200
commit52af5cde188c7cfc2f87de2b0f5c2e4734896d01 (patch)
treebcecd20bc52483394da18c04c7fb00a6665a6447
parent5816eb7c635ac063c210ceb96c3ebf3cd5be7138 (diff)
x86: slightly improve linker script
-rw-r--r--arch/x86/x15.lds.S21
1 files changed, 7 insertions, 14 deletions
diff --git a/arch/x86/x15.lds.S b/arch/x86/x15.lds.S
index 80b1e65..b896a5d 100644
--- a/arch/x86/x15.lds.S
+++ b/arch/x86/x15.lds.S
@@ -58,7 +58,7 @@ SECTIONS
_percpu = .;
.percpu 0 : AT(BOOT_VTOP(_percpu)) {
- *(.percpu)
+ *(.percpu*)
} : percpu
. = _percpu + SIZEOF(.percpu);
@@ -67,18 +67,14 @@ SECTIONS
_text = .;
.text ALIGN(PAGE_SIZE) : AT(BOOT_VTOP(ADDR(.text))) {
- *(.text)
+ *(.text*)
} : text
. = ALIGN(PAGE_SIZE);
_rodata = .;
.rodata ALIGN(PAGE_SIZE) : AT(BOOT_VTOP(ADDR(.rodata))) {
- *(.rodata)
- } : rodata
-
- .notes ALIGN(CPU_DATA_ALIGN) : AT(BOOT_VTOP(ADDR(.notes))) {
- *(.note.*)
+ *(.rodata*)
} : rodata
. = ALIGN(PAGE_SIZE);
@@ -88,21 +84,18 @@ SECTIONS
. = ALIGN(CPU_L1_SIZE);
*(.data.read_mostly)
. = ALIGN(CPU_L1_SIZE);
- *(.data)
+ *(.data*)
} : data
.bss ALIGN(CPU_DATA_ALIGN) : AT(BOOT_VTOP(ADDR(.bss))) {
- *(.bss)
+ *(.bss*)
} : data
. = ALIGN(PAGE_SIZE);
_end = .;
- /*
- * XXX A global offset section is created because of linking with libgcc.
- * Is it safe to discard it ?
- */
/DISCARD/ : {
- *(.eh_frame)
+ *(.eh_frame*)
+ *(.note*)
}
}