summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--usr.sbin/link.ld27
1 files changed, 9 insertions, 18 deletions
diff --git a/usr.sbin/link.ld b/usr.sbin/link.ld
index da2346d..9fad881 100644
--- a/usr.sbin/link.ld
+++ b/usr.sbin/link.ld
@@ -1,35 +1,26 @@
ENTRY(_start)
-PHDRS
-{
- text PT_LOAD FLAGS((1 << 0) | (1 << 2)) ; /* Execute + Read */
- rodata PT_LOAD FLAGS((1 << 2)) ; /* Read only */
- data PT_LOAD FLAGS((1 << 1) | (1 << 2)) ; /* Write + Read */
-}
-
SECTIONS
{
. = 0x10000;
- .text : {
+ .text :
+ {
*(.text)
*(.text.*)
- } :text
-
- .rodata : ALIGN(8) {
- *(.rodata)
- *(.rodata.*)
- } :rodata
+ }
- .data : ALIGN(8) {
+ .data : ALIGN(8)
+ {
*(.data)
*(.data.*)
- } :data
+ }
- .bss : ALIGN(8) {
+ .bss : ALIGN(8)
+ {
__bss_start = .;
*(.bss)
*(.bss.*)
__bss_end = .;
- } :data
+ }
}