OSDN Git Service

The GNU linker uses -v as a shortcut to --version, not --verbose. So atm,
[uclinux-h8/elf2flt.git] / elf2flt.ld.in
index 8a4b36b..c7e01a6 100644 (file)
@@ -5,6 +5,11 @@ MEMORY {
        flatmem : ORIGIN = 0x0, LENGTH = 0xfffffff
 }
 
+PHDRS {
+       text PT_LOAD ;
+       data PT_LOAD ;
+}
+
 SECTIONS {
 
        .text 0x0 : {
@@ -38,7 +43,7 @@ W_RODAT               *(.gnu.linkonce.r*)
 
                . = ALIGN(0x20) ;
                @SYMBOL_PREFIX@_etext = . ;
-       } > flatmem
+       } > flatmem :text
 
        .data : {
                . = ALIGN(0x4) ;
@@ -76,7 +81,6 @@ R_RODAT               *(.gnu.linkonce.r*)
                *(__libc_atexit)
                *(__libc_subinit)
                *(__libc_subfreeres)
-               *(.note.ABI-tag)
 
                /* microblaze-specific read-only small data area
                   and associated locating symbols */
@@ -130,8 +134,9 @@ TOR:                @SYMBOL_PREFIX@__DTOR_END__ = .;
                KEEP (*(.fini_array))
                KEEP (*(SORT(.fini_array.*)))
                PROVIDE (@SYMBOL_PREFIX@__fini_array_end = .);
-       } > flatmem
+       } > flatmem :data
 
+       .note.ABI-tag : { *(.note.ABI-tag) } > flatmem
        .eh_frame_hdr : { *(.eh_frame_hdr) } > flatmem
        .eh_frame : { KEEP(*(.eh_frame)) } > flatmem
        .gcc_except_table : {