Browse Source

linker.ld: merge small sections

master
3moon 8 years ago
parent
commit
1d4eb87486
1 changed files with 10 additions and 2 deletions
  1. +10
    -2
      src/arch/x86_64/linker.ld

+ 10
- 2
src/arch/x86_64/linker.ld View File

@ -10,6 +10,14 @@ SECTIONS {
.text : {
/* Kernel code */
*(.text)
*(.text .text.*) /* .text.* ensures that all small .text fragments are linked together */
}
}
/* ensure small fragments in .rodata and .rel.ro are linked together */
.rodata : {
*(.rodata .rodata.*)
}
.data.rel.ro : {
*(.data.rel.ro.local*) *(.data.rel.ro .data.rel.ro.*)
}
}

Loading…
Cancel
Save