]> git.wh0rd.org Git - elf2flt.git/commitdiff
PT_GNU_STACK markings make no sense with FLAT binaries, so discard the
authorDavid McCullough <davidm@snapgear.com>
Wed, 6 May 2009 23:39:42 +0000 (23:39 +0000)
committerDavid McCullough <davidm@snapgear.com>
Wed, 6 May 2009 23:39:42 +0000 (23:39 +0000)
related section when linking.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
elf2flt.ld

index 7f043ef8f408f1a718bdce5ca6cb6b1fb2533f49..947a072a37d0bc68eacea24ebd0e61ded73f3142 100644 (file)
@@ -165,6 +165,7 @@ SINGLE_LINK:        KEEP (*(SORT(.dtors.*)))
        }
 
        .junk 0 : { *(.rel*) *(.rela*) }
+       /DISCARD/ : { *(.note.GNU-stack) }
        /* Stabs debugging sections.    */
        .stab 0 : { *(.stab) }
        .stabstr 0 : { *(.stabstr) }