[Bug ld/28903] LD producing SegFault executables with FreePascal 2.6.4, in Binutils-2.36.1 and later

2022-03-03 Thread jbthiel at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=28903 --- Comment #25 from John B Thiel --- (In reply to Alan Modra from comment #23) > The segfaults are due to your linker script setting the value of "dot" to > near zero with ". = 0 + SIZEOF_HEADERS;" then containing a .data output > section wi

[Bug ld/28903] LD producing SegFault executables with FreePascal 2.6.4, in Binutils-2.36.1 and later

2022-03-01 Thread jbthiel at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=28903 --- Comment #24 from John B Thiel --- (In reply to Nick Clifton from comment #22) > (In reply to John B Thiel from comment #20) > > > Because FPC 2.6.4 is a legacy version, the way it produces the > > linker script is basically "etched in st

[Bug ld/28903] LD producing SegFault executables with FreePascal 2.6.4, in Binutils-2.36.1 and later

2022-02-28 Thread jbthiel at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=28903 John B Thiel changed: What|Removed |Added Status|RESOLVED|REOPENED Resolution|INVALID

[Bug ld/28903] LD producing SegFault executables with FreePascal 2.6.4, in Binutils-2.36.1 and later

2022-02-28 Thread jbthiel at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=28903 --- Comment #20 from John B Thiel --- Given that the root cause is a bug in the linker script from FPC, still the observable end-user fact is the combination of FPC 2.6.4 + binutils/LD up to 2.35 works, and has for years. It runs and produces

[Bug ld/28903] LD producing SegFault executables with FreePascal 2.6.4, in Binutils-2.36.1 and later

2022-02-27 Thread jbthiel at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=28903 --- Comment #18 from John B Thiel --- Looks like good progress, HJ Lu, though I don't follow all the internal specifics. Is this still under diagnosing/investigation, or is it now clear what the fix is? Any idea what kind of timeframe for th

[Bug ld/28903] LD producing SegFault executables with FreePascal 2.6.4, in Binutils-2.36.1 and later

2022-02-17 Thread jbthiel at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=28903 --- Comment #10 from John B Thiel --- (In reply to H.J. Lu from comment #9) > (In reply to John B Thiel from comment #8) > > (In reply to H.J. Lu from comment #6) > > > What is the last known working binutils? > > > > The last known good is b

[Bug ld/28903] LD producing SegFault executables with FreePascal 2.6.4, in Binutils-2.36.1 and later

2022-02-17 Thread jbthiel at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=28903 --- Comment #8 from John B Thiel --- (In reply to H.J. Lu from comment #6) > What is the last known working binutils? The last known good is binutils-2.35.2 On Gentoo, if I switch to it, this exact test case works fine, the program prints 'he

[Bug ld/28903] LD producing SegFault executables with FreePascal 2.6.4, in Binutils-2.36.1 and later

2022-02-17 Thread jbthiel at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=28903 --- Comment #5 from John B Thiel --- (In reply to H.J. Lu from comment #4) > (In reply to John B Thiel from comment #3) > > Created attachment 13986 [details] > > Complete test case demonstration package > > > > Here is a complete test case d

[Bug ld/28903] LD producing SegFault executables with FreePascal 2.6.4, in Binutils-2.36.1 and later

2022-02-17 Thread jbthiel at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=28903 --- Comment #3 from John B Thiel --- Created attachment 13986 --> https://sourceware.org/bugzilla/attachment.cgi?id=13986&action=edit Complete test case demonstration package Here is a complete test case demonstration package, including

[Bug ld/28903] LD producing SegFault executables with FreePascal 2.6.4, in Binutils-2.36.1 and later

2022-02-17 Thread jbthiel at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=28903 --- Comment #1 from John B Thiel --- Here are some notes from my FPC bug report, pulled forward for easy reference. I also put 2 linker maps in the other bug report, good-2.35.2 and bad-2.36.1, let me know if you need them attached again he

[Bug ld/28903] New: LD producing SegFault executables with FreePascal 2.6.4, in Binutils-2.36.1 and later

2022-02-17 Thread jbthiel at gmail dot com
Severity: normal Priority: P2 Component: ld Assignee: unassigned at sourceware dot org Reporter: jbthiel at gmail dot com Target Milestone: --- It appears that LD in binutils versions after 2.35 is producing segfault executables with Free Pascal 2.6.4