[Bug binutils/26405] [objdump, readelf] - PT_OPENBSD_* segments are not recognised.
https://sourceware.org/bugzilla/show_bug.cgi?id=26405 --- Comment #3 from georgerim at gmail dot com --- Thanks, Nick! -- You are receiving this mail because: You are on the CC list for the bug.
[Bug binutils/26469] UBSAN error: bfd/elflink.c:8742:7:
https://sourceware.org/bugzilla/show_bug.cgi?id=26469 Alan Modra changed: What|Removed |Added Last reconfirmed||2020-08-27 Assignee|unassigned at sourceware dot org |amodra at gmail dot com Ever confirmed|0 |1 Status|UNCONFIRMED |ASSIGNED -- You are receiving this mail because: You are on the CC list for the bug.
[Bug binutils/26088] windmc reports incorrect line numbers
https://sourceware.org/bugzilla/show_bug.cgi?id=26088 --- Comment #7 from Ralf Habacker --- ping -- You are receiving this mail because: You are on the CC list for the bug.
[Bug ld/19011] Issues with ld on mingw-w64 and bad defaults
https://sourceware.org/bugzilla/show_bug.cgi?id=19011 --- Comment #14 from cvs-commit at gcc dot gnu.org --- The master branch has been updated by Nick Clifton : https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=514b4e191d5f46de8e142fe216e677a35fa9c4bb commit 514b4e191d5f46de8e142fe216e677a35fa9c4bb Author: Jeremy Drake Date: Thu Aug 27 12:58:27 2020 +0100 Change the default characteristics of DLLs built by the linker to more secure settings. PR 19011 * emultempl/pe.em (DEFAULT_DLL_CHARACTERISTICS): Define. (pe_dll_characteristics): Initialise to DEFAULT_DLL_CHARACTERISTICS. (add_options): Add options to disable DLL characteristics. (list_options): List the new options. (handle_options): Handle the new options. * emultempl/pep.em: Similar changes to above. (NT_EXE_IMAGE_BASE): Default to an address above 4G. (NT_DLL_IMAGE_BASE, NT_DLL_AUTO_IMAGE_BASE, (NT_DLL_AUTO_IMAGE_MASK): Likewise. * ld.texi: Document the new options. * pe-dll.c (pe_dll_enable_reloc_section): Change to default to true. (generate_reloc): Do nothing if there is no reloc section. (pe_exe_fill_sections): Only assign the reloc section contents if the section exists. * testsuite/ld-pe/pe.exp: Add the --disable-reloc-section flag to the .secrel32 tests. * testsuite/ld-scripts/provide-8.d: Expect for fail on PE targets. * NEWS: Mention the change in DLL generation. -- You are receiving this mail because: You are on the CC list for the bug.
[Bug ld/19011] Issues with ld on mingw-w64 and bad defaults
https://sourceware.org/bugzilla/show_bug.cgi?id=19011 --- Comment #15 from Nick Clifton --- Thanks Jeremy - I have now applied your two patches. I made two small additions - documenting the new options in ld/ld.texi and mentioning the change in linker behaviour in the ld/NEWS file. I also had to fix a couple of problems with the generation of reloc information when none was expected, but overall the patches proved to be easy to apply and test. Are these changes sufficient, or is there more that needs to be done ? Cheers Nick -- You are receiving this mail because: You are on the CC list for the bug.
[Bug binutils/26416] UBSAN error: bfd/elf64-alpha.c:4819:10:
https://sourceware.org/bugzilla/show_bug.cgi?id=26416 --- Comment #3 from Alan Modra --- I think this patch introduced a fail alpha-linux +FAIL: TLS -fpic and -fno-pic exec -relax -- You are receiving this mail because: You are on the CC list for the bug.
[Bug binutils/26416] UBSAN error: bfd/elf64-alpha.c:4819:10:
https://sourceware.org/bugzilla/show_bug.cgi?id=26416 --- Comment #4 from Alan Modra --- Never mind, I'm going to commit the following --- a/bfd/elf64-alpha.c +++ b/bfd/elf64-alpha.c @@ -3464,9 +3464,8 @@ elf64_alpha_relax_tls_get_addr (struct alpha_relax_info *info, bfd_vma symval, bfd_boolean dynamic, use_gottprel; unsigned long new_symndx; - if (info->h == NULL) -return TRUE; /* FIXME: Should this be return FALSE ? */ - dynamic = alpha_elf_dynamic_symbol_p (&info->h->root, info->link_info); + dynamic = (info->h != NULL +&& alpha_elf_dynamic_symbol_p (&info->h->root, info->link_info)); /* If a TLS symbol is accessed using IE at least once, there is no point to use dynamic model for it. */ -- You are receiving this mail because: You are on the CC list for the bug.
[Bug binutils/26416] UBSAN error: bfd/elf64-alpha.c:4819:10:
https://sourceware.org/bugzilla/show_bug.cgi?id=26416 --- Comment #5 from cvs-commit at gcc dot gnu.org --- The master branch has been updated by Alan Modra : https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=c415c83bd98e683d2be0709f476315d46906a371 commit c415c83bd98e683d2be0709f476315d46906a371 Author: Alan Modra Date: Thu Aug 27 21:54:16 2020 +0930 Re: commit eae0b5c3b2d6b PR 26416 * elf64-alpha.c (elf64_alpha_relax_tls_get_addr): Correct "dynamic". -- You are receiving this mail because: You are on the CC list for the bug.
[Bug binutils/26462] UBSAN error: bfd/reloc.c:473:15:
https://sourceware.org/bugzilla/show_bug.cgi?id=26462 --- Comment #1 from cvs-commit at gcc dot gnu.org --- The master branch has been updated by Alan Modra : https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=cd570d497efca7b71ca999cb80d24bfcea5181ac commit cd570d497efca7b71ca999cb80d24bfcea5181ac Author: Alan Modra Date: Thu Aug 27 13:25:31 2020 +0930 PR26462 UBSAN: reloc.c:473 shift exponent 4294967295 PR 26462 * reloc.c (bfd_check_overflow): Return early if zero bitsize. -- You are receiving this mail because: You are on the CC list for the bug.
[Bug binutils/26469] UBSAN error: bfd/elflink.c:8742:7:
https://sourceware.org/bugzilla/show_bug.cgi?id=26469 --- Comment #1 from cvs-commit at gcc dot gnu.org --- The master branch has been updated by Alan Modra : https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=4b69ce9b9121090ac42cf8fa20b949bbd9afff95 commit 4b69ce9b9121090ac42cf8fa20b949bbd9afff95 Author: Alan Modra Date: Thu Aug 27 21:44:41 2020 +0930 PR26469 UBSAN: elflink.c:8742 shift exponent 6148914691236511722 PR 26469 * elflink.c: Include limits.h. (CHAR_BIT): Provide fallback define. (set_symbol_value): Correct complex reloc comment. (undefined_reference): Set bfd_error. (BINARY_OP_HEAD, BINARY_OP_TAIL): Split out from.. (BINARY_OP): ..this. (eval_symbol): Limit shifts. Force unsigned for left shift. Catch divide by zero. * configure.ac (AC_CHECK_HEADERS): Combine, sort and add limits.h. * configure: Regenerate. * config.in: Regenerate. -- You are receiving this mail because: You are on the CC list for the bug.
[Bug binutils/26467] UBSAN error: gas/cgen.c:762:32:
https://sourceware.org/bugzilla/show_bug.cgi?id=26467 --- Comment #1 from cvs-commit at gcc dot gnu.org --- The master branch has been updated by Alan Modra : https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=6fbd4a8e8baa7fe5adcaa1c11c885f741fccd250 commit 6fbd4a8e8baa7fe5adcaa1c11c885f741fccd250 Author: Alan Modra Date: Thu Aug 27 13:46:45 2020 +0930 PR26467 UBSAN: cgen.c:762 shift exponent 18446744073709551615 PR 26467 * cgen.c (weak_operand_overflow_check): Handle opmask for operand length zero. Use 1UL constant. -- You are receiving this mail because: You are on the CC list for the bug.
[Bug binutils/26416] UBSAN error: bfd/elf64-alpha.c:4819:10:
https://sourceware.org/bugzilla/show_bug.cgi?id=26416 --- Comment #6 from cvs-commit at gcc dot gnu.org --- The master branch has been updated by Nick Clifton : https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=9fb2400ce641fa797e27e1fecaf700a8589bda96 commit 9fb2400ce641fa797e27e1fecaf700a8589bda96 Author: Nick Clifton Date: Thu Aug 27 13:47:02 2020 +0100 Fix linker testcase for alpha-linux affected by fix for PR 26416 PR 26416 * testsuite/ld-alpha/tlsbinr.rd: Update expected output. * testsuite/ld-alpha/tlsbinr.dd: Likewise. * testsuite/ld-alpha/tlsbinr.sd: Likewise. -- You are receiving this mail because: You are on the CC list for the bug.
[Bug binutils/26416] UBSAN error: bfd/elf64-alpha.c:4819:10:
https://sourceware.org/bugzilla/show_bug.cgi?id=26416 --- Comment #7 from Nick Clifton --- (In reply to cvs-com...@gcc.gnu.org from comment #6) > commit 9fb2400ce641fa797e27e1fecaf700a8589bda96 Doh! I have just removed this commit. -- You are receiving this mail because: You are on the CC list for the bug.
[Bug binutils/26088] windmc reports incorrect line numbers
https://sourceware.org/bugzilla/show_bug.cgi?id=26088 --- Comment #8 from cvs-commit at gcc dot gnu.org --- The master branch has been updated by Nick Clifton : https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=6b5473c97e98828d6d8509b13a257efbed308bad commit 6b5473c97e98828d6d8509b13a257efbed308bad Author: Ralf Habacker Date: Thu Aug 27 15:59:53 2020 +0100 Corrects the broken line number incrementation in the Windows resource parser When the tokens MCLINE, MCENDLINE, and MCCOMMENT were created, the line number was not increased, which led to an incorrect value in the error output. PR 26088 * mclex.c (skip_until_eol): if eol was found, increment line number -- You are receiving this mail because: You are on the CC list for the bug.
[Bug binutils/26088] windmc reports incorrect line numbers
https://sourceware.org/bugzilla/show_bug.cgi?id=26088 Nick Clifton changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|--- |FIXED CC||nickc at redhat dot com --- Comment #9 from Nick Clifton --- Hi Ralf, Sorry about missing this one. The patch is now applied. Cheers Nick -- You are receiving this mail because: You are on the CC list for the bug.
[Bug ld/19011] Issues with ld on mingw-w64 and bad defaults
https://sourceware.org/bugzilla/show_bug.cgi?id=19011 --- Comment #16 from Alan Modra --- This patch apparently caused x86_64-w64-mingw32 +FAIL: plugin claimfile lost symbol x86_64-w64-mingw32 +FAIL: plugin claimfile replace file x86_64-w64-mingw32 +FAIL: plugin error x86_64-w64-mingw32 +FAIL: plugin warning x86_64-w64-mingw32 +FAIL: plugin ignore lib x86_64-w64-mingw32 +FAIL: plugin claimfile replace lib x86_64-w64-mingw32 +FAIL: plugin with empty archive x86_64-w64-mingw32 +FAIL: PR ld/20070 -- You are receiving this mail because: You are on the CC list for the bug.
[Bug ld/19011] Issues with ld on mingw-w64 and bad defaults
https://sourceware.org/bugzilla/show_bug.cgi?id=19011 --- Comment #17 from Alan Modra --- It also fixed these by removing the "zero vma section reloc detected" error, where no --just-symbols was involved so I'm not sure this is a good thing. sh-pe +FAIL: objcopy executable (pr25662) sh-pe -FAIL: PE-COFF Long section names in objects (default) sh-pe -FAIL: PE-COFF Long section names in objects (disabled) sh-pe -FAIL: PE-COFF Long section names in objects (enabled) sh-pe -FAIL: align1 sh-pe -FAIL: ld-scripts/align2a sh-pe -FAIL: ld-scripts/align2b sh-pe -FAIL: ld-scripts/align5 sh-pe -FAIL: ALIGNOF sh-pe -FAIL: ASSERT sh-pe +XPASS: ld-scripts/fill16 sh-pe -FAIL: ld-scripts/defined2 sh-pe -FAIL: ld-scripts/defined3 sh-pe -FAIL: ld-scripts/defined4 sh-pe -FAIL: ld-scripts/defined5 sh-pe -FAIL: ld-scripts/pr24008 sh-pe -FAIL: ld-scripts/empty-address-1 sh-pe -FAIL: ld-scripts/empty-address-2a sh-pe -FAIL: ld-scripts/empty-address-2b sh-pe -FAIL: ld-scripts/empty-address-3a sh-pe -FAIL: ld-scripts/empty-address-3b sh-pe -FAIL: ld-scripts/empty-address-3c sh-pe -FAIL: ld-scripts/pr22267 sh-pe -FAIL: EXTERN sh-pe -FAIL: include-1 sh-pe -FAIL: binary logarithm sh-pe -FAIL: ld-scripts/pr20302 sh-pe +XPASS: SEGMENT_START expression not absolute (default) sh-pe +XPASS: SEGMENT_START expression not absolute (overridden) sh-pe -FAIL: SIZEOF -- You are receiving this mail because: You are on the CC list for the bug.
[Bug binutils/26356] FAIL: objcopy --reverse-bytes
https://sourceware.org/bugzilla/show_bug.cgi?id=26356 --- Comment #6 from cvs-commit at gcc dot gnu.org --- The master branch has been updated by John David Anglin : https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=9e7ed8b080afa19fff25244913594f95af282657 commit 9e7ed8b080afa19fff25244913594f95af282657 Author: John David Anglin Date: Thu Aug 27 15:25:03 2020 + Fix PR binutils/26356 on hppa*-*-hpux*. PR 26356 * som.c (som_bfd_copy_private_section_data): Issue error when a subspace is specified without its containing space. * testsuite/binutils-all/objcopy.exp (objcopy --reverse-bytes): Add "-j $PRIVATE$" to command on hppa*-*-hpux*. * testsuite/lib/utils-lib.exp (default_binutils_run): Remove existing dollar-sign quotes before quoting. Do this prior to generating log output. -- You are receiving this mail because: You are on the CC list for the bug.
[Bug ld/19011] Issues with ld on mingw-w64 and bad defaults
https://sourceware.org/bugzilla/show_bug.cgi?id=19011 --- Comment #18 from Nick Clifton --- (In reply to Alan Modra from comment #17) > It also fixed these by removing the "zero vma section reloc detected" error, > where no --just-symbols was involved so I'm not sure this is a good thing. Ah - I did wonder if I was being too eager in suppressing that error. I will look into it, but I have to wonder, does anyone actually use the sh-pe target anymore ? Cheers Nick -- You are receiving this mail because: You are on the CC list for the bug.
[Bug gas/26395] binutils 2.28 Assertion failure in md_apply_fix at ../../gas/config/tc-aarch64.c:7766.
https://sourceware.org/bugzilla/show_bug.cgi?id=26395 --- Comment #2 from toregionsfair at gmail dot com --- Created attachment 12806 --> https://sourceware.org/bugzilla/attachment.cgi?id=12806&action=edit gcc -v -save-temps output binutils 2.35 binutils 2.35 compile output -- You are receiving this mail because: You are on the CC list for the bug.
[Bug gas/26395] binutils 2.28 Assertion failure in md_apply_fix at ../../gas/config/tc-aarch64.c:7766.
https://sourceware.org/bugzilla/show_bug.cgi?id=26395 --- Comment #3 from toregionsfair at gmail dot com --- Created attachment 12807 --> https://sourceware.org/bugzilla/attachment.cgi?id=12807&action=edit assembly Pre-alpha stage code generation -- You are receiving this mail because: You are on the CC list for the bug.
[Bug gas/26395] binutils 2.28 Assertion failure in md_apply_fix at ../../gas/config/tc-aarch64.c:7766.
https://sourceware.org/bugzilla/show_bug.cgi?id=26395 toregionsfair at gmail dot com changed: What|Removed |Added Severity|normal |minor -- You are receiving this mail because: You are on the CC list for the bug.
[Bug ld/19011] Issues with ld on mingw-w64 and bad defaults
https://sourceware.org/bugzilla/show_bug.cgi?id=19011 --- Comment #19 from sourceware-bugzilla at jdrake dot com --- Perhaps the default enabling of --enable-reloc-section should have been more limited? That was a last-minute change on my part, when I noticed the executables I built were not actually having ASLR applied to them due to lack of relocations. I did not consider non-x86 targets there. -- You are receiving this mail because: You are on the CC list for the bug.
[Bug binutils/26356] FAIL: objcopy --reverse-bytes
https://sourceware.org/bugzilla/show_bug.cgi?id=26356 John David Anglin changed: What|Removed |Added Status|NEW |RESOLVED Resolution|--- |FIXED --- Comment #7 from John David Anglin --- Fixed. -- You are receiving this mail because: You are on the CC list for the bug.
[Bug binutils/26462] UBSAN error: bfd/reloc.c:473:15:
https://sourceware.org/bugzilla/show_bug.cgi?id=26462 Alan Modra changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Target Milestone|--- |2.36 Resolution|--- |FIXED --- Comment #2 from Alan Modra --- Fixed -- You are receiving this mail because: You are on the CC list for the bug.
[Bug binutils/26467] UBSAN error: gas/cgen.c:762:32:
https://sourceware.org/bugzilla/show_bug.cgi?id=26467 Alan Modra changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|--- |FIXED Target Milestone|--- |2.36 --- Comment #2 from Alan Modra --- Fixed -- You are receiving this mail because: You are on the CC list for the bug.
[Bug binutils/26469] UBSAN error: bfd/elflink.c:8742:7:
https://sourceware.org/bugzilla/show_bug.cgi?id=26469 Alan Modra changed: What|Removed |Added Resolution|--- |FIXED Status|ASSIGNED|RESOLVED Target Milestone|--- |2.36 --- Comment #2 from Alan Modra --- Fixed -- You are receiving this mail because: You are on the CC list for the bug.
[Bug ld/19011] Issues with ld on mingw-w64 and bad defaults
https://sourceware.org/bugzilla/show_bug.cgi?id=19011 --- Comment #20 from Alan Modra --- >From ld.log before/after the patch it looks like all of the regressions on x86_64-w64-mingw32 are due to additional "relocation truncated to fit" errors. good: ./ld-new -o tmpdir/pr20070.x -L/home/alan/src/binutils-gdb/ld/testsuite/ld-plugin -Bstatic -plugin /home/alan/build/gas/x86_64-w64-mingw32/ld/.libs/libldtestplug4.so.0 -plugin-opt registerclaimfile -plugin-opt registerallsymbolsread -plugin-opt registercleanup -plugin-opt claim:/home/alan/src/binutils-gdb/ld/testsuite/ld-plugin/pr20070b.c -plugin-opt claim:tmpdir/libpr20070.a -plugin-opt dumpresolutions tmpdir/pr20070a.o tmpdir/text.o tmpdir/libpr20070.a --defsym __stack_chk_fail=0 --defsym __main=0 --defsym ___main=0 --defsym printf=main --defsym puts=main hook called: all symbols read. Input: pr20070b.c (tmpdir/libpr20070.a) Sym: 'def' Resolution: LDPR_PREVAILING_DEF_IRONLY Sym: 'weakdef' Resolution: LDPR_PREVAILING_DEF_IRONLY Sym: 'undef' Resolution: LDPR_UNDEF Sym: 'weakundef' Resolution: LDPR_UNDEF Sym: 'common' Resolution: LDPR_PREVAILING_DEF_IRONLY hook called: cleanup. bad: ./ld-new -o tmpdir/pr20070.x -L/home/alan/src/binutils-gdb/ld/testsuite/ld-plugin -Bstatic -plugin /home/alan/build/gas/x86_64-w64-mingw32/ld/.libs/libldtestplug4.so.0 -plugin-opt registerclaimfile -plugin-opt registerallsymbolsread -plugin-opt registercleanup -plugin-opt claim:/home/alan/src/binutils-gdb/ld/testsuite/ld-plugin/pr20070b.c -plugin-opt claim:tmpdir/libpr20070.a -plugin-opt dumpresolutions tmpdir/pr20070a.o tmpdir/text.o tmpdir/libpr20070.a --defsym __stack_chk_fail=0 --defsym __main=0 --defsym ___main=0 --defsym printf=main --defsym puts=main hook called: all symbols read. Input: pr20070b.c (tmpdir/libpr20070.a) Sym: 'def' Resolution: LDPR_PREVAILING_DEF_IRONLY Sym: 'weakdef' Resolution: LDPR_PREVAILING_DEF_IRONLY Sym: 'undef' Resolution: LDPR_UNDEF Sym: 'weakundef' Resolution: LDPR_UNDEF Sym: 'common' Resolution: LDPR_PREVAILING_DEF_IRONLY tmpdir/pr20070a.o: in function `main': /home/alan/src/binutils-gdb/ld/testsuite/ld-plugin/pr20070a.c:6:(.text.startup+0x5): relocation truncated to fit: R_X86_64_PC32 against symbol `__main' defined in *ABS* section in tmpdir/pr20070.x hook called: cleanup. Fixing these regressions can probably be done by passing --disable-reloc-section on pe targets for these tests. -- You are receiving this mail because: You are on the CC list for the bug.
[Bug ld/19011] Issues with ld on mingw-w64 and bad defaults
https://sourceware.org/bugzilla/show_bug.cgi?id=19011 --- Comment #21 from Alan Modra --- It turned out that the regressions were caused by the change to default image base. I'll commit a fix after running a few tests. -- You are receiving this mail because: You are on the CC list for the bug.
[Bug ld/19011] Issues with ld on mingw-w64 and bad defaults
https://sourceware.org/bugzilla/show_bug.cgi?id=19011 --- Comment #22 from cvs-commit at gcc dot gnu.org --- The master branch has been updated by Alan Modra : https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=16f9c644c7fcec6f4aa6f4e8a1458b57d2b28982 commit 16f9c644c7fcec6f4aa6f4e8a1458b57d2b28982 Author: Alan Modra Date: Fri Aug 28 10:51:28 2020 +0930 mingw plugin test regressions due to commit 514b4e191d5f Fixes new failures due to image base change. PR 19011 * testsuite/ld-plugin/plugin.exp: Use modified CFLAGS throughout file. Add --image-base for pecoff. -- You are receiving this mail because: You are on the CC list for the bug.