[Bug gas/22492] Incorrect note section alignment
https://sourceware.org/bugzilla/show_bug.cgi?id=22492 --- 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=ed9c7ee03780b8d5acf091091ded29cd40df8254 commit ed9c7ee03780b8d5acf091091ded29cd40df8254 Author: Nick Clifton Date: Wed Nov 29 09:32:49 2017 + Use the record_alignment function when creating a .note section, in case the user has already created the section. PR 22492 * config/obj-elf.c (obj_elf_version): Use record_alignment rather than bfd_set_section_alignment. -- You are receiving this mail because: You are on the CC list for the bug. ___ bug-binutils mailing list bug-binutils@gnu.org https://lists.gnu.org/mailman/listinfo/bug-binutils
Re: [Bug gas/22492] Incorrect note section alignment
Hi Alan, > https://sourceware.org/bugzilla/show_bug.cgi?id=22492 > Was the patch in comment #1 posted to the mailing list? Sorry no - that was my bad. > There's a small nit.. > I think it should be using record_alignment rather than > bfd_set_section_alignment. So it should. I have checked in this patch to fix the problem. Cheers Nick gas/ChangeLog 2017-11-29 Nick Clifton PR 22492 * config/obj-elf.c (obj_elf_version): Use record_alignment rather than bfd_set_section_alignment. diff --git a/gas/config/obj-elf.c b/gas/config/obj-elf.c index 2d1d1679b8..61c573a5e4 100644 --- a/gas/config/obj-elf.c +++ b/gas/config/obj-elf.c @@ -1829,7 +1829,7 @@ obj_elf_version (int ignore ATTRIBUTE_UNUSED) bfd_set_section_flags (stdoutput, note_secp, SEC_HAS_CONTENTS | SEC_READONLY); - bfd_set_section_alignment (stdoutput, note_secp, 2); + record_alignment (note_secp, 2); /* Process the version string. */ len = strlen (name) + 1; ___ bug-binutils mailing list bug-binutils@gnu.org https://lists.gnu.org/mailman/listinfo/bug-binutils
[Bug gas/22492] Incorrect note section alignment
https://sourceware.org/bugzilla/show_bug.cgi?id=22492 --- Comment #7 from Nick Clifton --- Hi Alan, > https://sourceware.org/bugzilla/show_bug.cgi?id=22492 > Was the patch in comment #1 posted to the mailing list? Sorry no - that was my bad. > There's a small nit.. > I think it should be using record_alignment rather than > bfd_set_section_alignment. So it should. I have checked in this patch to fix the problem. Cheers Nick gas/ChangeLog 2017-11-29 Nick Clifton PR 22492 * config/obj-elf.c (obj_elf_version): Use record_alignment rather than bfd_set_section_alignment. diff --git a/gas/config/obj-elf.c b/gas/config/obj-elf.c index 2d1d1679b8..61c573a5e4 100644 --- a/gas/config/obj-elf.c +++ b/gas/config/obj-elf.c @@ -1829,7 +1829,7 @@ obj_elf_version (int ignore ATTRIBUTE_UNUSED) bfd_set_section_flags (stdoutput, note_secp, SEC_HAS_CONTENTS | SEC_READONLY); - bfd_set_section_alignment (stdoutput, note_secp, 2); + record_alignment (note_secp, 2); /* Process the version string. */ len = strlen (name) + 1; -- You are receiving this mail because: You are on the CC list for the bug. ___ bug-binutils mailing list bug-binutils@gnu.org https://lists.gnu.org/mailman/listinfo/bug-binutils
[Bug binutils/22416] heap-buffer-overflow in bfd_getl16
https://sourceware.org/bugzilla/show_bug.cgi?id=22416 Alan Modra changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED CC||amodra at gmail dot com Resolution|--- |FIXED --- Comment #1 from Alan Modra --- Already fixed on master -- You are receiving this mail because: You are on the CC list for the bug. ___ bug-binutils mailing list bug-binutils@gnu.org https://lists.gnu.org/mailman/listinfo/bug-binutils
[Bug ld/22471] libraries using version scripts can cause undefined reference to linker-defined symbols
https://sourceware.org/bugzilla/show_bug.cgi?id=22471 --- Comment #5 from cvs-commit at gcc dot gnu.org --- The master branch has been updated by H.J. Lu : https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=08f650e6b657e59959d7db8af100720721bd10a2 commit 08f650e6b657e59959d7db8af100720721bd10a2 Author: H.J. Lu Date: Wed Nov 29 04:20:48 2017 -0800 ld: Add a testcase for PR ld/22471 PR ld/22471 * testsuite/ld-elf/pr22471.t: New file. * testsuite/ld-elf/pr22471a.s: Likewise. * testsuite/ld-elf/pr22471b.s: Likewise. * testsuite/ld-elf/shared.exp (ASFLAGS): Define UNDERSCORE for underscore targets. Run PR ld/22471 tests. -- You are receiving this mail because: You are on the CC list for the bug. ___ bug-binutils mailing list bug-binutils@gnu.org https://lists.gnu.org/mailman/listinfo/bug-binutils
[Bug binutils/22508] Heap overflow in dump_relocs_in_section
https://sourceware.org/bugzilla/show_bug.cgi?id=22508 --- Comment #1 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=d785b7d4b877ed465d04072e17ca19d0f47d840f commit d785b7d4b877ed465d04072e17ca19d0f47d840f Author: Nick Clifton Date: Wed Nov 29 12:40:43 2017 + Stop objdump from attempting to allocate a huge chunk of memory when parsing relocs in a corrupt file. PR 22508 * objdump.c (dump_relocs_in_section): Also check the section's relocation count to make sure that it is reasonable before attempting to allocate space for the relocs. -- You are receiving this mail because: You are on the CC list for the bug. ___ bug-binutils mailing list bug-binutils@gnu.org https://lists.gnu.org/mailman/listinfo/bug-binutils
[Bug binutils/22508] Heap overflow in dump_relocs_in_section
https://sourceware.org/bugzilla/show_bug.cgi?id=22508 Nick Clifton changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED CC||nickc at redhat dot com Resolution|--- |FIXED --- Comment #2 from Nick Clifton --- Hi Mingi, Thanks for reporting this problem. I have checked in a patch that should stop the memory exhaustion from happening: https://sourceware.org/ml/binutils/2017-11/msg00551.html Cheers Nick -- You are receiving this mail because: You are on the CC list for the bug. ___ bug-binutils mailing list bug-binutils@gnu.org https://lists.gnu.org/mailman/listinfo/bug-binutils
[Bug ld/22471] libraries using version scripts can cause undefined reference to linker-defined symbols
https://sourceware.org/bugzilla/show_bug.cgi?id=22471 H.J. Lu changed: What|Removed |Added Status|NEW |RESOLVED Resolution|--- |FIXED Target Milestone|--- |2.30 --- Comment #6 from H.J. Lu --- Fixed. -- You are receiving this mail because: You are on the CC list for the bug. ___ bug-binutils mailing list bug-binutils@gnu.org https://lists.gnu.org/mailman/listinfo/bug-binutils
[Bug ld/22269] Undefined weak symbols isn't resolved to 0 in static PIE
https://sourceware.org/bugzilla/show_bug.cgi?id=22269 Egeyar Bagcioglu changed: What|Removed |Added CC||egeyar.bagcioglu at oracle dot com --- Comment #31 from Egeyar Bagcioglu --- The new test case PR22269-1 fails on sparc with the following message: /home/egeyar/repos/binutils-obj/ld/ld-new: read-only segment has dynamic relocations. -- You are receiving this mail because: You are on the CC list for the bug. ___ bug-binutils mailing list bug-binutils@gnu.org https://lists.gnu.org/mailman/listinfo/bug-binutils
[Bug ld/22269] Undefined weak symbols isn't resolved to 0 in static PIE
https://sourceware.org/bugzilla/show_bug.cgi?id=22269 --- Comment #32 from H.J. Lu --- (In reply to Egeyar Bagcioglu from comment #31) > The new test case PR22269-1 fails on sparc with the following message: > > /home/egeyar/repos/binutils-obj/ld/ld-new: read-only segment has dynamic > relocations. Sparc linker is broken. Someone needs to fix it. -- You are receiving this mail because: You are on the CC list for the bug. ___ bug-binutils mailing list bug-binutils@gnu.org https://lists.gnu.org/mailman/listinfo/bug-binutils
[Bug binutils/22509] Null pointer dereference on coff_slurp_reloc_table
https://sourceware.org/bugzilla/show_bug.cgi?id=22509 --- Comment #1 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=4581a1c7d304ce14e714b27522ebf3d0188d6543 commit 4581a1c7d304ce14e714b27522ebf3d0188d6543 Author: Nick Clifton Date: Wed Nov 29 17:12:12 2017 + Check for a NULL symbol pointer when reading relocs from a COFF based file. PR 22509 * coffcode.h (coff_slurp_reloc_table): Check for a NULL symbol pointer when processing relocs. -- You are receiving this mail because: You are on the CC list for the bug. ___ bug-binutils mailing list bug-binutils@gnu.org https://lists.gnu.org/mailman/listinfo/bug-binutils
[Bug binutils/22509] Null pointer dereference on coff_slurp_reloc_table
https://sourceware.org/bugzilla/show_bug.cgi?id=22509 Nick Clifton changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED CC||nickc at redhat dot com Resolution|--- |FIXED --- Comment #2 from Nick Clifton --- Hi Mingi, Thanks for reporting this bug. I have applied a small patch to fix the problem: https://sourceware.org/ml/binutils/2017-11/msg00558.html The issue was that the code that loaded the relocs assumed that a symbol was always available, whereas in your test file, it was not. Cheers Nick -- You are receiving this mail because: You are on the CC list for the bug. ___ bug-binutils mailing list bug-binutils@gnu.org https://lists.gnu.org/mailman/listinfo/bug-binutils
[Bug admin/22528] New: Bodoamat
https://sourceware.org/bugzilla/show_bug.cgi?id=22528 Bug ID: 22528 Summary: Bodoamat Product: binutils Version: unspecified Status: UNCONFIRMED Severity: normal Priority: P2 Component: admin Assignee: unassigned at sourceware dot org Reporter: teamzth at gmail dot com Target Milestone: --- Created attachment 10647 --> https://sourceware.org/bugzilla/attachment.cgi?id=10647&action=edit asasas1212 hufft -- You are receiving this mail because: You are on the CC list for the bug. ___ bug-binutils mailing list bug-binutils@gnu.org https://lists.gnu.org/mailman/listinfo/bug-binutils
[Bug gas/22529] New: AArch64 treats vector register sizes of 8b and 4b as the same thing.
https://sourceware.org/bugzilla/show_bug.cgi?id=22529 Bug ID: 22529 Summary: AArch64 treats vector register sizes of 8b and 4b as the same thing. Product: binutils Version: 2.29 Status: UNCONFIRMED Severity: normal Priority: P2 Component: gas Assignee: unassigned at sourceware dot org Reporter: tamar.christina at arm dot com Target Milestone: --- AArch64 treats the following two instructions the same ``` udot v0.2s,v1.8b,v2.4b ``` and ``` udot v0.2s,v1.8b,v2.8b ``` by treating the `4b` as `8b`. The former one is not valid and should be rejected. -- You are receiving this mail because: You are on the CC list for the bug. ___ bug-binutils mailing list bug-binutils@gnu.org https://lists.gnu.org/mailman/listinfo/bug-binutils
[Bug gas/22529] AArch64 treats vector register sizes of 8b and 4b as the same thing.
https://sourceware.org/bugzilla/show_bug.cgi?id=22529 Tamar Christina changed: What|Removed |Added Target||aarch64-* -- You are receiving this mail because: You are on the CC list for the bug. ___ bug-binutils mailing list bug-binutils@gnu.org https://lists.gnu.org/mailman/listinfo/bug-binutils
[Bug binutils/22464] x86 gas -n option does not work
https://sourceware.org/bugzilla/show_bug.cgi?id=22464 --- Comment #3 from cvs-commit at gcc dot gnu.org --- The master branch has been updated by Jim Wilson : https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=f923328821e2e835c725822bce2aac6e10c52dd9 commit f923328821e2e835c725822bce2aac6e10c52dd9 Author: Jim Wilson Date: Wed Nov 29 10:22:26 2017 -0800 In x86 -n docs, mention that you need an explicit nop fill byte. gas/ PR gas/22464 * doc/c-i386.texi (-n): Clarify docs. -- You are receiving this mail because: You are on the CC list for the bug. ___ bug-binutils mailing list bug-binutils@gnu.org https://lists.gnu.org/mailman/listinfo/bug-binutils
[Bug binutils/22532] New: objdump doesn't disassemble dwarf opcodes for DW_AT_byte_size
https://sourceware.org/bugzilla/show_bug.cgi?id=22532 Bug ID: 22532 Summary: objdump doesn't disassemble dwarf opcodes for DW_AT_byte_size Product: binutils Version: unspecified Status: NEW Severity: normal Priority: P2 Component: binutils Assignee: unassigned at sourceware dot org Reporter: tromey at sourceware dot org Target Milestone: --- I have a file that uses a location expression in DW_AT_byte_size. objdump printed this: <7c5> DW_AT_byte_size : 13 byte block: 97 94 1 99 95 0 0 0 23 7 9 fc 1a However, for other location expressions, it disassembles: <818> DW_AT_location: 33 byte block: 12 31 2e 28 4 0 34 2f 15 0 12 34 2e 28 4 0 30 2f b 0 12 33 29 28 4 0 30 2f 1 0 34 16 13 (DW_OP_dup; DW_OP_lit1; DW_OP_ne; DW_OP_bra: 4; DW_OP_lit4; DW_OP_skip: 21; DW_OP_dup; DW_OP_lit4; DW_OP_ne; DW_OP_bra: 4; DW_OP_lit0; DW_OP_skip: 11; DW_OP_dup; DW_OP_lit3; DW_OP_eq; DW_OP_bra: 4; DW_OP_lit0; DW_OP_skip: 1; DW_OP_lit4; DW_OP_swap; DW_OP_drop) -- You are receiving this mail because: You are on the CC list for the bug. ___ bug-binutils mailing list bug-binutils@gnu.org https://lists.gnu.org/mailman/listinfo/bug-binutils
[Bug admin/22528] Bodoamat
https://sourceware.org/bugzilla/show_bug.cgi?id=22528 Alan Modra changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|--- |INVALID --- Comment #1 from Alan Modra --- spam -- You are receiving this mail because: You are on the CC list for the bug. ___ bug-binutils mailing list bug-binutils@gnu.org https://lists.gnu.org/mailman/listinfo/bug-binutils
[Bug ld/22471] libraries using version scripts can cause undefined reference to linker-defined symbols
https://sourceware.org/bugzilla/show_bug.cgi?id=22471 --- Comment #7 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=668247656d5dec815a57761e98720dda09f72481 commit 668247656d5dec815a57761e98720dda09f72481 Author: Alan Modra Date: Thu Nov 30 13:10:35 2017 +1030 Fix testcase for PR ld/22471 ASFLAGS should be restored after any modification. Fixes metag-linux +FAIL: Long branch stub metag-linux +FAIL: Long branch stub (PIC, app) mn10300-elf +FAIL: difference of two same-section symbols where the difference is held in another section mn10300-elf +FAIL: relaxation and alignment directives PR 22471 * testsuite/ld-elf/shared.exp: Save and restore ASFLAGS. -- You are receiving this mail because: You are on the CC list for the bug. ___ bug-binutils mailing list bug-binutils@gnu.org https://lists.gnu.org/mailman/listinfo/bug-binutils