> The linker bug blocking this patch has actually already been fixed, see > https://github.com/bminor/binutils-gdb/commit/72cd2c70977943054ff784b7278cef > 5262288f32 for the patch that fixed it (Thanks for the help Jan!).
Sorry, I somehow missed it. :-( Then a configure check should be added in the compiler to tell whether the detected linker has the fix or not. There are already some specific checks for the PE linker at configure.ac:6500, although they do not invoke it. A model could be the linker check "linker EH garbage collection of sections bug" at configure.ac:6295 and the check could use one of tests that Jan enabled in the linker testsuite (secrel-reloc.d). > I'll add your suggestions to the patch before pushing out a new version for > review, thanks (Well, there is one suggestion of yours I cannot add: Making > the secrel32 relocation Pmode, since the emitted assembly is broken when I > do that) Do you have a testcase for this particular issue? -- Eric Botcazou