[Bug ld/27050] [2.36 Regression] ld -no-pie not recognized anymore

2020-12-14 Thread cvs-commit at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=27050

--- Comment #9 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=3991c7acb29aa8d7d52150695eb3efa03a08dd50

commit 3991c7acb29aa8d7d52150695eb3efa03a08dd50
Author: Nick Clifton 
Date:   Mon Dec 14 12:40:13 2020 +

Fix a use of an uninitialised variable in the bfd linker.

PR 27050
* lexsup.c (parse_args): Ensure that the longind local variable is
set.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug ld/27050] [2.36 Regression] ld -no-pie not recognized anymore

2020-12-14 Thread nickc at redhat dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=27050

Nick Clifton  changed:

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
 Resolution|--- |FIXED

--- Comment #10 from Nick Clifton  ---
Right - I have checked in the patch to fix the use of an unitialised variable.

Frankly I do not see any need to go any further.  The linker does not have a
-no-pie or a --no-pie command line option, so the error message is correct. 
Hence I am going to close this PR.  If anyone has any strong objections they
can reopen it and tell us what they think.

Cheers
  Nick

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug ld/26836] potential memory leak in parse_args

2020-12-14 Thread cvs-commit at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=26836

--- 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=8da4f428d1663541bdd49f5aa2041d06ac6a06de

commit 8da4f428d1663541bdd49f5aa2041d06ac6a06de
Author: Alan Modra 
Date:   Mon Dec 14 19:34:20 2020 +1030

PR26836, memory leak in parse_args

PR 26836
* lexsup.c (parse_args): Free really_longopts, longopts and
shortopts.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug gas/27047] .bss pseudo operation not supported for target z80-unknown-elf

2020-12-14 Thread petemoore at gmx dot net
https://sourceware.org/bugzilla/show_bug.cgi?id=27047

--- Comment #8 from Pete Moore  ---
Many thanks Sergey and Nick!

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug ld/26836] potential memory leak in parse_args

2020-12-14 Thread amodra at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=26836

Alan Modra  changed:

   What|Removed |Added

 Resolution|--- |FIXED
   Target Milestone|--- |2.36
 Status|UNCONFIRMED |RESOLVED

--- Comment #2 from Alan Modra  ---
Fixed for 2.36

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug gold/27039] Gold doesn't support SHF_GNU_RETAIN

2020-12-14 Thread cvs-commit at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=27039

--- Comment #3 from cvs-commit at gcc dot gnu.org  ---
The master branch has been updated by Cary Coutant :

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=ff4bc37d77a0ca7286883a477adcb3aa145fc782

commit ff4bc37d77a0ca7286883a477adcb3aa145fc782
Author: Cary Coutant 
Date:   Mon Dec 14 15:46:47 2020 -0800

Keep input SHF_GNU_RETAIN sections and strip output SHF_GNU_RETAIN for
GNU/FreBSD ELFOSABIs.

2020-12-14  H.J. Lu  
Cary Coutant  

elfcpp/
PR gold/27039
* elfcpp.h (SHF): Add SHF_GNU_RETAIN.

gold/
PR gold/27039
* layout.cc (Layout::layout): Strip SHF_GNU_RETAIN.
* object.cc (Sized_relobj_file::Sized_relobj_file): Initialize
osabi_.
(Sized_relobj_file::do_layout): Keep SHF_GNU_RETAIN sections for
GNU/FreBSD ELFOSABIs.
* object.h (Osabi) New class.
(Sized_relobj_file): Add osabi() and osabi_.
* testsuite/Makefile.am (check_SCRIPTS): Add retain.sh.
(check_DATA): Add retain_1.out retain_2.out.
(MOSTLYCLEANFILES): Add retain_1 retain_2.
(retain_1.out): New target.
(retain_1): Likewise.
(retain_1.o): Likewise.
(retain_2.out): Likewise.
(retain_2): Likewise.
(retain_2.o): Likewise.
* testsuite/Makefile.in: Regenerate.
* testsuite/retain.sh: New file.
* testsuite/retain_1.s: Likewise.
* testsuite/retain_2.s: Likewise.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug gas/27071] New: Multiple bugs in GNU assembler

2020-12-14 Thread sirus.shahini at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=27071

Bug ID: 27071
   Summary: Multiple bugs in GNU assembler
   Product: binutils
   Version: 2.35.1
Status: UNCONFIRMED
  Severity: normal
  Priority: P2
 Component: gas
  Assignee: unassigned at sourceware dot org
  Reporter: sirus.shahini at gmail dot com
  Target Milestone: ---

Created attachment 13051
  --> https://sourceware.org/bugzilla/attachment.cgi?id=13051&action=edit
Compressed archive of three crashing inputs

Hello,

During development and evaluation of our fuzzer we found multiple bugs in GNU
assembler. I have attached 3 inputs that can crash the latest version of the
assembler because of these issues:

1- Integer overflow, heap overflow and heap corruption in 'gas/listing.c'.
2- Invalid pointer dereference in 'gas/symbols.c'.
3- Double free and heap corruption in 'gas/config/obj-elf.c'.

The first input (crash000_opt_a_SIGSEGV) needs '-a' argument to cause the
crash.

-- 
You are receiving this mail because:
You are on the CC list for the bug.