From 034248a22b9c5d2be44c554aa4c5080ca498b2b3 Mon Sep 17 00:00:00 2001 From: David McCullough Date: Wed, 6 May 2009 23:39:42 +0000 Subject: [PATCH] PT_GNU_STACK markings make no sense with FLAT binaries, so discard the related section when linking. Signed-off-by: Mike Frysinger --- elf2flt.ld | 1 + 1 file changed, 1 insertion(+) 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) } -- 2.39.5