[Bug binutils/30830] New: stripping PE binary fails to delete security directory entry

2023-09-07 Thread medhefgo at web dot de
Priority: P2 Component: binutils Assignee: unassigned at sourceware dot org Reporter: medhefgo at web dot de Target Milestone: --- Given a signed PE/EFI binary, running `strip` on it will remove the signatures contained in it, but leave the security data

[Bug ld/30198] New: Assertion fail when linking elf and coff together

2023-03-05 Thread medhefgo at web dot de
Component: ld Assignee: unassigned at sourceware dot org Reporter: medhefgo at web dot de Target Milestone: --- I know the following makes no sense to do, but it should error out instead of crashing. $ uname -a Linux debian-amd64 6.1.14-1-lts #1 SMP PREEMPT_DYNAMIC Sat, 25 Feb

[Bug ld/29998] ld terminated with signal 11 [Segmentation fault] under mingw with LTO

2023-01-27 Thread medhefgo at web dot de
https://sourceware.org/bugzilla/show_bug.cgi?id=29998 --- Comment #24 from Jan Janssen --- The patch seems to work and the EFI binary works as expected. -- You are receiving this mail because: You are on the CC list for the bug.

[Bug ld/29998] ld terminated with signal 11 [Segmentation fault] under mingw with LTO

2023-01-25 Thread medhefgo at web dot de
https://sourceware.org/bugzilla/show_bug.cgi?id=29998 --- Comment #21 from Jan Janssen --- Of course the reproducer is nonsensical. It's just a minified version of systemd-boot. > These files appear to be redundant - their code is never called. When I minified the code, this appeared to be nece

[Bug ld/29998] ld terminated with signal 11 [Segmentation fault] under mingw with LTO

2023-01-24 Thread medhefgo at web dot de
https://sourceware.org/bugzilla/show_bug.cgi?id=29998 --- Comment #18 from Jan Janssen --- Compilation works now and the binary will run, but I get a miscompilation(?) wrt popcount builtin. Both cases are based on https://github.com/systemd/systemd/pull/26097, where I originally encountered them

[Bug ld/29998] ld terminated with signal 11 [Segmentation fault] under mingw with LTO

2023-01-23 Thread medhefgo at web dot de
https://sourceware.org/bugzilla/show_bug.cgi?id=29998 --- Comment #15 from Jan Janssen --- Compilation works with -Wl,--disable-reloc-section. Since you're on fedora, you can easily set up a container like this (not sure if adding a repo is needed when this is run on fedora, so you may need to a

[Bug ld/29998] ld terminated with signal 11 [Segmentation fault] under mingw with LTO

2023-01-20 Thread medhefgo at web dot de
https://sourceware.org/bugzilla/show_bug.cgi?id=29998 --- Comment #13 from Jan Janssen --- Dunno why it it not occur to me to do a bisection… 514b4e191d5f46de8e142fe216e677a35fa9c4bb is the first bad commit -- You are receiving this mail because: You are on the CC list for the bug.

[Bug ld/29998] ld terminated with signal 11 [Segmentation fault] under mingw with LTO

2023-01-19 Thread medhefgo at web dot de
https://sourceware.org/bugzilla/show_bug.cgi?id=29998 --- Comment #12 from Jan Janssen --- Now it crashes here (sec->output_section is NULL): #0 _bfd_coff_generic_relocate_section (output_bfd=0x5581c000, info=0x557d8ec0 , input_bfd=0x55864020, input_section=0x55878008, contents=

[Bug ld/29998] ld terminated with signal 11 [Segmentation fault] under mingw with LTO

2023-01-18 Thread medhefgo at web dot de
https://sourceware.org/bugzilla/show_bug.cgi?id=29998 --- Comment #10 from Jan Janssen --- > So possibly s->output_section is not a valid pointer ? Mind you this does > seem unlikely as that very same indirection has been used in several places > before line 1538. To be honest though, I have

[Bug ld/29998] ld terminated with signal 11 [Segmentation fault] under mingw with LTO

2023-01-17 Thread medhefgo at web dot de
https://sourceware.org/bugzilla/show_bug.cgi?id=29998 --- Comment #8 from Jan Janssen --- I rebuilt mingw-w64-binutils with debug info and managed to get a backtrace (this if on arch): Thread 1 (Thread 0x77db1740 (LWP 84627) "ld"): #0 generate_reloc (abfd=0x557f8a40, info=0x557bbe20

[Bug ld/29998] ld terminated with signal 11 [Segmentation fault] under mingw with LTO

2023-01-17 Thread medhefgo at web dot de
https://sourceware.org/bugzilla/show_bug.cgi?id=29998 --- Comment #7 from Jan Janssen --- > I am stuck here because I do not have > /usr/lib/gcc/x86_64-w64-mingw32/12.2.0/lto-wrapper installed (and just using > a dummy empty file does not work). It's as easy as: $ deboostrap --include=gcc-12,g

[Bug ld/29998] ld terminated with signal 11 [Segmentation fault] under mingw with LTO

2023-01-14 Thread medhefgo at web dot de
https://sourceware.org/bugzilla/show_bug.cgi?id=29998 --- Comment #5 from Jan Janssen --- Convert string '/usr/lib/gcc/x86_64-w64-mingw32/12.2.0/:/usr/lib/gcc/x86_64-w64-mingw32/12.2.0/:/usr/lib/gcc/x86_64-w64-mingw32/:/usr/lib/gcc/x86_64-w64-mingw32/12.2.0/:/usr/lib/gcc/x86_64-w64-mingw32/:/usr/

[Bug ld/29998] ld terminated with signal 11 [Segmentation fault] under mingw with LTO

2023-01-14 Thread medhefgo at web dot de
https://sourceware.org/bugzilla/show_bug.cgi?id=29998 --- Comment #4 from Jan Janssen --- Created attachment 14595 --> https://sourceware.org/bugzilla/attachment.cgi?id=14595&action=edit test2.obj -- You are receiving this mail because: You are on the CC list for the bug.

[Bug ld/29998] ld terminated with signal 11 [Segmentation fault] under mingw with LTO

2023-01-14 Thread medhefgo at web dot de
https://sourceware.org/bugzilla/show_bug.cgi?id=29998 --- Comment #3 from Jan Janssen --- Created attachment 14594 --> https://sourceware.org/bugzilla/attachment.cgi?id=14594&action=edit test1.obj -- You are receiving this mail because: You are on the CC list for the bug.

[Bug ld/29998] ld terminated with signal 11 [Segmentation fault] under mingw with LTO

2023-01-14 Thread medhefgo at web dot de
https://sourceware.org/bugzilla/show_bug.cgi?id=29998 --- Comment #2 from Jan Janssen --- Created attachment 14593 --> https://sourceware.org/bugzilla/attachment.cgi?id=14593&action=edit libtest.a -- You are receiving this mail because: You are on the CC list for the bug.

[Bug ld/29998] New: ld terminated with signal 11 [Segmentation fault] under mingw with LTO

2023-01-13 Thread medhefgo at web dot de
: normal Priority: P2 Component: ld Assignee: unassigned at sourceware dot org Reporter: medhefgo at web dot de Target Milestone: --- The following build steps will result in bfd crashing. This only seems to happen with a mingw gcc toolchain and only if LTO is