https://sourceware.org/bugzilla/show_bug.cgi?id=19803
--- Comment #9 from martin.koegler at chello dot at ---
I have reworked the first version a little bit.
The DEF-handling looks OK. SEH prevents the removal of a function,
Get dx.s from Comment #2.
t1.s:
=============
.file "t1.c"
.section .text.unlikely,"x"
.LCOLDB0:
.text
.LHOTB0:
.p2align 4,,15
.globl add
.def add; .scl 2; .type 32; .endef
.seh_proc add
add:
.seh_endprologue
ret
.seh_endproc
.section .text.unlikely,"x"
.LCOLDE0:
.text
.LHOTE0:
.ident "GCC: (GNU) 5.3.0"
===============
dx.def:
=============
EXPORTS
testval @1 DATA
=============
x86_64-w64-mingw32-as -o t1.o t1.s
x86_64-w64-mingw32-as -o dx.o dx.s
x86_64-w64-mingw32-ld -o dx.dll -shared dx.o t1.o --print-gc-sections
--out-implib dx.dll.a --gc-sections dx.def
t1 is not removed, until the .seh statements are removed from t1.s.
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
bug-binutils mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-binutils