From: David McCullough Date: Wed, 6 May 2009 23:39:42 +0000 (+0000) Subject: PT_GNU_STACK markings make no sense with FLAT binaries, so discard the X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=034248a22b9c5d2be44c554aa4c5080ca498b2b3;p=elf2flt.git PT_GNU_STACK markings make no sense with FLAT binaries, so discard the related section when linking. Signed-off-by: Mike Frysinger --- diff --git a/elf2flt.ld b/elf2flt.ld index 7f043ef..947a072 100644 --- a/elf2flt.ld +++ b/elf2flt.ld @@ -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) }