[Bug ld/22369] Mingw linker crash with no-keep-memory

2017-10-31 Thread martin.koegler at chello dot at
https://sourceware.org/bugzilla/show_bug.cgi?id=22369 --- Comment #3 from martin.koegler at chello dot at --- mingw build logs + RPM package source: https://build.opensuse.org/package/show/windows:mingw:win64/mingw64-cross-binutils -- You are receiving this mail because: You are on the CC list

[Bug ld/22369] Mingw linker crash with no-keep-memory

2017-10-31 Thread martin.koegler at chello dot at
https://sourceware.org/bugzilla/show_bug.cgi?id=22369 --- Comment #2 from martin.koegler at chello dot at --- $ cat t.s .file "t.c" .text .globl _main .def_main; .scl2; .type 32; .endef .seh_proc _main _main:

[Bug ld/22369] New: Mingw linker crash with no-keep-memory

2017-10-30 Thread martin.koegler at chello dot at
Assignee: unassigned at sourceware dot org Reporter: martin.koegler at chello dot at Target Milestone: --- I noticed, that a mingw x86_64 ld crashes, if no-keep-memory is used and it gets passed an 64 bit ELF linux object. $ cat t.c = #include int _main(int argc

[Bug ld/19803] gc-sections breaks PE DLL variable export

2016-04-03 Thread martin.koegler at chello dot at
https://sourceware.org/bugzilla/show_bug.cgi?id=19803 --- Comment #21 from martin.koegler at chello dot at --- (In reply to Nick Clifton from comment #19) > OK - this revised patch contains an attempt to fix this function as well. > Please could you give it a try and let me know the r

[Bug ld/19803] gc-sections breaks PE DLL variable export

2016-03-25 Thread martin.koegler at chello dot at
https://sourceware.org/bugzilla/show_bug.cgi?id=19803 --- Comment #20 from martin.koegler at chello dot at --- (In reply to Nick Clifton from comment #19) > > In my option, this change is not necessary, as it just would hides broken > > symbols in the export library. > >

[Bug ld/19803] gc-sections breaks PE DLL variable export

2016-03-23 Thread martin.koegler at chello dot at
https://sourceware.org/bugzilla/show_bug.cgi?id=19803 --- Comment #18 from martin.koegler at chello dot at --- First, 41f46ed9fea1a066de95b6a85c56393beef0b8b8 (Fix possible failure in the AVR linker tests) introduced (propably accidentically) did a change to pe_dll_generate_implib not documented

[Bug ld/19803] gc-sections breaks PE DLL variable export

2016-03-22 Thread martin.koegler at chello dot at
https://sourceware.org/bugzilla/show_bug.cgi?id=19803 --- Comment #15 from martin.koegler at chello dot at --- The remaining i686-w64-mingw32 problem: It uses a different symbol name different to the exported symbol name: Eg. testval is exported, but the symbol in the .o file is called _testval

[Bug ld/19803] gc-sections breaks PE DLL variable export

2016-03-21 Thread martin.koegler at chello dot at
https://sourceware.org/bugzilla/show_bug.cgi?id=19803 --- Comment #14 from martin.koegler at chello dot at --- You can consider my xstrdup use as a bug [safest choice]. Binutils 2.26 + patch from Comment #13 works for a larger project for x86_64-w32-mingw. For i686-w64-mingw32, I have an issue

[Bug ld/19803] gc-sections breaks PE DLL variable export

2016-03-19 Thread martin.koegler at chello dot at
https://sourceware.org/bugzilla/show_bug.cgi?id=19803 --- Comment #6 from martin.koegler at chello dot at --- The last patch is incorrect. In my testcase, it still exports the removed variable in the DLL export table: [Ordinal/Name Pointer] Table [ 0] testval So directly linking

[Bug ld/19803] gc-sections breaks PE DLL variable export

2016-03-19 Thread martin.koegler at chello dot at
https://sourceware.org/bugzilla/show_bug.cgi?id=19803 --- Comment #13 from martin.koegler at chello dot at --- Created attachment 9108 --> https://sourceware.org/bugzilla/attachment.cgi?id=9108=edit Cleaned patch I'm currently testings this on a tree with

[Bug ld/19803] gc-sections breaks PE DLL variable export

2016-03-18 Thread martin.koegler at chello dot at
https://sourceware.org/bugzilla/show_bug.cgi?id=19803 --- Comment #8 from martin.koegler at chello dot at --- Created attachment 9106 --> https://sourceware.org/bugzilla/attachment.cgi?id=9106=edit Patch V1 -- You are receiving this mail because: You are on the CC list for the

[Bug ld/19803] gc-sections breaks PE DLL variable export

2016-03-18 Thread martin.koegler at chello dot at
https://sourceware.org/bugzilla/show_bug.cgi?id=19803 --- Comment #10 from martin.koegler at chello dot at --- (In reply to Nick Clifton from comment #7) > True - but it looks to me like the data structures for generating the export > table are set up far too early - ie before garbage coll

[Bug ld/19803] gc-sections breaks PE DLL variable export

2016-03-18 Thread martin.koegler at chello dot at
https://sourceware.org/bugzilla/show_bug.cgi?id=19803 --- Comment #12 from martin.koegler at chello dot at --- Looks OK, but I have troubles applying it. Additionally, there is 41f46ed9fea1a066de95b6a85c56393beef0b8b8 on master, which looks like an earlier version. I'll try to test it. -- You

[Bug ld/19803] gc-sections breaks PE DLL variable export

2016-03-15 Thread martin.koegler at chello dot at
https://sourceware.org/bugzilla/show_bug.cgi?id=19803 --- Comment #4 from martin.koegler at chello dot at --- Fixes all my testcases. -- You are receiving this mail because: You are on the CC list for the bug. ___ bug-binutils mailing list bug

[Bug ld/19803] New: gc-sections breaks PE DLL variable export

2016-03-09 Thread martin.koegler at chello dot at
Assignee: unassigned at sourceware dot org Reporter: martin.koegler at chello dot at Target Milestone: --- --gc-sections is still broken for variables: d1.cpp: extern const long testval[2] = {1, 2}; d2.cpp: === #include extern const long testval[]; int main() { printf

[Bug ld/15041] ld -r bugs for pe format (mingw)

2013-01-23 Thread martin.koegler at chello dot at
http://sourceware.org/bugzilla/show_bug.cgi?id=15041 martin.koegler at chello dot at changed: What|Removed |Added Status|RESOLVED|REOPENED

[Bug ld/15041] New: ld -r bugs for pe format (mingw)

2013-01-19 Thread martin.koegler at chello dot at
http://sourceware.org/bugzilla/show_bug.cgi?id=15041 Bug #: 15041 Summary: ld -r bugs for pe format (mingw) Product: binutils Version: unspecified Status: NEW Severity: normal Priority: P2 Component: ld

[Bug ld/15041] ld -r bugs for pe format (mingw)

2013-01-19 Thread martin.koegler at chello dot at
http://sourceware.org/bugzilla/show_bug.cgi?id=15041 --- Comment #1 from martin.koegler at chello dot at 2013-01-19 19:21:08 UTC --- Created attachment 6828 -- http://sourceware.org/bugzilla/attachment.cgi?id=6828 GCC generated assembler code for easier reproduction -- Configure bugmail: http

[Bug ld/15041] ld -r bugs for pe format (mingw)

2013-01-19 Thread martin.koegler at chello dot at
http://sourceware.org/bugzilla/show_bug.cgi?id=15041 martin.koegler at chello dot at changed: What|Removed |Added Attachment #6828|application/octet-stream|text/plain