[Bug ld/23169] IFUNC pointer should be allowed in executable

2021-01-17 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=23169

--- Comment #9 from H.J. Lu  ---
(In reply to Fangrui Song from comment #8)
> Can https://sourceware.org/glibc/wiki/GNU_IFUNC to updated to document what
> is supported and what isn't supported?
> 

IFUNC documentation needs improvements.

> 
> Is the idea that
> (1) the main executable is relocated the last.
> (2) by making the main executable STT_GNU_IFUNC STT_FUNC, ifunc resolver
> will not be called while the main executable is unresolved

Correct.

> (3) How does an ifunc resolver defined in another DSO work? Let the user
> ensures DT_NEEDED BFS order or the ld.so itself does topological sorting?

Current ld.so issues an error with a suggestion when it detects it.

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


[Bug ld/13391] .rofixup section size mismatch

2021-01-17 Thread vapier at gentoo dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=13391

Mike Frysinger  changed:

   What|Removed |Added

 Target||bfin-linux-uclibc

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


[Bug ld/13391] .rofixup section size mismatch

2021-01-17 Thread vapier at gentoo dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=13391

Mike Frysinger  changed:

   What|Removed |Added

 CC||vapier at gentoo dot org

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


[Bug gas/27198] New: Memory access violation in symbols.c

2021-01-17 Thread sirus.shahini at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=27198

Bug ID: 27198
   Summary: Memory access violation in symbols.c
   Product: binutils
   Version: 2.36
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 13126
  --> https://sourceware.org/bugzilla/attachment.cgi?id=13126&action=edit
Sample Input

Hello,

Our fuzzer detected a pointer corruption in 'gas/symbols.c'. A crashing input
has been attached. To reproduce, simply try to assemble it with 'as' program.

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


[Bug gas/27198] Memory access violation in symbols.c

2021-01-17 Thread amodra at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=27198

Alan Modra  changed:

   What|Removed |Added

   Last reconfirmed||2021-01-17
   Assignee|unassigned at sourceware dot org   |amodra at gmail dot com
 Status|UNCONFIRMED |ASSIGNED
 Ever confirmed|0   |1

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


[Bug gas/27193] Linkonce section with unused section symbols won't match comdat section without unused section symbols

2021-01-17 Thread cvs-commit at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=27193

--- Comment #10 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=994b25132814f4c2be93ce53a616a74139c4cf3c

commit 994b25132814f4c2be93ce53a616a74139c4cf3c
Author: H.J. Lu 
Date:   Sun Jan 17 20:01:16 2021 -0800

ld/elf: Ignore section symbols when matching linkonce with comdat

When deciding if a single member comdat group section in file FOO should
be discarded by a linkonce section in file BAR, we check if 2 sections
define the same set of local and global symbols.  When only one of the
files doesn't contain the unused section symbols in the symbol table,
such as object files generated by clang or GNU assembler with

commit d1bcae833b32f1408485ce69f844dcd7ded093a8
Author: H.J. Lu 
Date:   Thu Jan 7 06:42:00 2021 -0800

ELF: Don't generate unused section symbols

the check will fail since one file has the extra unused section symbols.
We should ignore both undefined and section symbols in the symbol table
when making such a decision.

bfd/

PR ld/27193
* elflink.c (elf_create_symbuf): Also ignore section symbols.

ld/

PR ld/27193
* testsuite/ld-i386/i386.exp: Run PR ld/27193 test.
* testsuite/ld-i386/pr27193.dd: New file.
* testsuite/ld-i386/pr27193a.o.bz2: Likewise.
* testsuite/ld-i386/pr27193b.s: Likewise.

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


[Bug gas/27198] Memory access violation in symbols.c

2021-01-17 Thread cvs-commit at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=27198

--- 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=44365e88c0e021a7f734e44aa845f1e96cd83389

commit 44365e88c0e021a7f734e44aa845f1e96cd83389
Author: Alan Modra 
Date:   Mon Jan 18 09:38:22 2021 +1030

PR27198, segv in S_IS_WEAK

Fix a NULL dereference seen when assembling invalid input.

PR 27198
* config/tc-i386.c (need_plt32_p): Return FALSE for NULL symbol.
* testsuite/gas/i386/pr27198.d,
* gas/testsuite/gas/i386/pr27198.err,
* gas/testsuite/gas/i386/pr27198.s: New test.
* gas/testsuite/gas/i386/i386.exp: Run it.

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


[Bug gas/27198] Memory access violation in symbols.c

2021-01-17 Thread amodra at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=27198

Alan Modra  changed:

   What|Removed |Added

   Target Milestone|--- |2.37
 Resolution|--- |FIXED
 Status|ASSIGNED|RESOLVED

--- Comment #2 from Alan Modra  ---
Fixed on master

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