[Bug ld/27203] ld ppc: Emit R_PPC64_IRELATIVE instead of R_PPC64_JMP_SLOT for non-preemptible ifunc referenced by a DSO

2021-01-18 Thread cvs-commit at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=27203 --- Comment #4 from cvs-commit at gcc dot gnu.org --- The binutils-2_36-branch branch has been updated by Alan Modra : https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=d235291c81996095afa31b5fa59a325f0bf7236e commit d235291c8199609

[Bug ld/27203] ld ppc: Emit R_PPC64_IRELATIVE instead of R_PPC64_JMP_SLOT for non-preemptible ifunc referenced by a DSO

2021-01-18 Thread cvs-commit at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=27203 --- Comment #3 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=a75a6a416477915b7d236537c9170ced3064df11 commit a75a6a416477915b7d236537c9170

[Bug ld/27203] ld ppc: Emit R_PPC64_IRELATIVE instead of R_PPC64_JMP_SLOT for non-preemptible ifunc referenced by a DSO

2021-01-18 Thread amodra at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=27203 --- Comment #2 from Alan Modra --- I generated a patch to change powerpc64 to use R_PPC64_IRELATIVE in this situation, but now I'm wondering if such a change is a good idea. IRELATIVE relocs must be resolved at program startup whereas JMP_SLO

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

2021-01-18 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=23169 --- Comment #13 from H.J. Lu --- X86 linker uses a trick to use the PLT entry of IFUNC function in position-dependent executable as the function address for ALL internal and external references. We can do that because the PLT entry doesn't ne

[Bug ld/27200] Bad RiscV64 ELF header flag using ld -b binary

2021-01-18 Thread bztemail at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=27200 --- Comment #8 from bzt --- > The input has no branding, so the linker cannot invent it. But it does invent it, that's the problem! "ld" should just use the default ABI for the platform, the same as all the other tool use. Not inventing up "s

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

2021-01-18 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=23169 --- Comment #12 from H.J. Lu --- (In reply to Fangrui Song from comment #11) > (In reply to H.J. Lu from comment #9) > > cat > ./a.s < resolver: > ret > > .globl ifunc, _start > .type ifunc, @gnu_indirect_function > .set ifunc, resolver >

[Bug ld/27203] ld ppc: Emit R_PPC64_IRELATIVE instead of R_PPC64_JMP_SLOT for non-preemptible ifunc referenced by a DSO

2021-01-18 Thread amodra at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=27203 --- Comment #1 from Alan Modra --- And attempting to link with gold gives gold/ld-new: internal error in do_plt_fde_location, at /home/alan/src/binutils-gdb/gold/powerpc.cc:3949 -- You are receiving this mail because: You are on the CC list

[Bug ld/27203] ld ppc: Emit R_PPC64_IRELATIVE instead of R_PPC64_JMP_SLOT for non-preemptible ifunc referenced by a DSO

2021-01-18 Thread amodra at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=27203 Alan Modra changed: What|Removed |Added Ever confirmed|0 |1 Last reconfirmed|

[Bug ld/27203] ld ppc: Emit R_PPC64_IRELATIVE instead of R_PPC64_JMP_SLOT for non-preemptible ifunc referenced by a DSO

2021-01-18 Thread i at maskray dot me
https://sourceware.org/bugzilla/show_bug.cgi?id=27203 Fangrui Song changed: What|Removed |Added Target||powerpc* -- You are receiving this ma

[Bug ld/27203] New: ld ppc: Emit R_PPC64_IRELATIVE instead of R_PPC64_JMP_SLOT for non-preemptible ifunc referenced by a DSO

2021-01-18 Thread i at maskray dot me
https://sourceware.org/bugzilla/show_bug.cgi?id=27203 Bug ID: 27203 Summary: ld ppc: Emit R_PPC64_IRELATIVE instead of R_PPC64_JMP_SLOT for non-preemptible ifunc referenced by a DSO Product: binutils Version: unsp

[Bug ld/27200] Bad RiscV64 ELF header flag using ld -b binary

2021-01-18 Thread sch...@linux-m68k.org
https://sourceware.org/bugzilla/show_bug.cgi?id=27200 --- Comment #7 from Andreas Schwab --- The input has no branding, so the linker cannot invent it. The emulation says nothing about the ABI, that information is strictly coming from the input files. -- You are receiving this mail because: Yo

Issue 28211 in oss-fuzz: binutils:fuzz_readelf: Direct-leak in xmalloc

2021-01-18 Thread sheriffbot via monorail
Updates: Labels: -restrict-view-commit Comment #4 on issue 28211 by sheriffbot: binutils:fuzz_readelf: Direct-leak in xmalloc https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=28211#c4 This bug has been fixed for 30 days. It has been opened to the public. - Your friendly Sheriffbot

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

2021-01-18 Thread i at maskray dot me
https://sourceware.org/bugzilla/show_bug.cgi?id=23169 --- Comment #11 from Fangrui Song --- (In reply to H.J. Lu from comment #9) > (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?

[Bug ld/27200] Bad RiscV64 ELF header flag using ld -b binary

2021-01-18 Thread bztemail at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=27200 --- Comment #6 from bzt --- Look: $ cat a.s .globl _start .text _start: ret $ riscv64-elf-as -c a.s -o a.o $ riscv64-elf-readelf -h a.o | grep Flags Flags: 0x4 double-float ABI $ riscv64-elf-ld a.o -o a $ riscv64

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

2021-01-18 Thread matt at godbolt dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=27193 --- Comment #13 from Matt Godbolt --- Thank you all so much! -- You are receiving this mail because: You are on the CC list for the bug.

[Bug ld/27200] Bad RiscV64 ELF header flag using ld -b binary

2021-01-18 Thread bztemail at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=27200 --- Comment #4 from bzt --- > That's the point. Using ld -b binary is not a good way to wrap binary blobs. Bad point! Forcing additional assembly on all language and architecture combinations? An unacceptable additional complexity to the bui

[Bug ld/27200] Bad RiscV64 ELF header flag using ld -b binary

2021-01-18 Thread bztemail at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=27200 --- Comment #5 from bzt --- Or let me rephrase: ld generating an Elf header with an emulation that it wasn't configured for is a bug. Cheers, bzt -- You are receiving this mail because: You are on the CC list for the bug.

[Bug ld/27200] Bad RiscV64 ELF header flag using ld -b binary

2021-01-18 Thread sch...@linux-m68k.org
https://sourceware.org/bugzilla/show_bug.cgi?id=27200 --- Comment #3 from Andreas Schwab --- > No assembler used in this project. That's the point. Using ld -b binary is not a good way to wrap binary blobs. -- You are receiving this mail because: You are on the CC list for the bug.

[Bug ld/27200] Bad RiscV64 ELF header flag using ld -b binary

2021-01-18 Thread bztemail at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=27200 --- Comment #2 from bzt --- No assembler used in this project. FYI, this works with x86_64 and aarch64 only risv64 affected. I also have C++, Pascal, Rust versions of kernel.c, those must be linked with font.o too, so this needs to be a langu

[Bug gas/27195] Error: file number less than one

2021-01-18 Thread cvs-commit at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=27195 --- Comment #10 from cvs-commit at gcc dot gnu.org --- The binutils-2_36-branch branch has been updated by H.J. Lu : https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=4e02d082a3506578e6fe1d990593a29d3fc07f94 commit 4e02d082a3506578e

[Bug gas/27195] Error: file number less than one

2021-01-18 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=27195 H.J. Lu changed: What|Removed |Added Resolution|--- |FIXED Target Milestone|---

[Bug binutils/27202] New: readelf -wL doesn't work on ".loc 0"

2021-01-18 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=27202 Bug ID: 27202 Summary: readelf -wL doesn't work on ".loc 0" Product: binutils Version: 2.37 (HEAD) Status: NEW Severity: normal Priority: P2 Component: binuti

[Bug gas/27195] Error: file number less than one

2021-01-18 Thread cvs-commit at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=27195 --- Comment #9 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=705989f19adf20dd70c50237ec61cd708f2b0939 commit 705989f19adf20dd70c50237ec61cd70

[Bug gas/27195] Error: file number less than one

2021-01-18 Thread nickc at redhat dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=27195 --- Comment #8 from Nick Clifton --- Argh - please ignore - I am confusing the two solutions to this problem. Reviewing the auto-enable-dwarf-5 patch now -- You are receiving this mail because: You are on the CC list for the bug.

[Bug gas/27195] Error: file number less than one

2021-01-18 Thread nickc at redhat dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=27195 --- Comment #7 from Nick Clifton --- Hi H.J. OK - patch approved. Please apply to the mainline. I have been talking to Jakub about this and he has persuaded me that your solution is the best idea. Cheers Nick -- You are receiving t

[Bug gas/27195] Error: file number less than one

2021-01-18 Thread nickc at redhat dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=27195 --- Comment #6 from Nick Clifton --- (In reply to H.J. Lu from comment #5) > It is done in GCC. But it doesn't always work. If assembly codes have > DWARF5 ".file 0" or ".loc 0" directives, assembler should turn on DWARF5 > and accept them.

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

2021-01-18 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=27193 H.J. Lu changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug gas/27195] Error: file number less than one

2021-01-18 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=27195 --- Comment #5 from H.J. Lu --- (In reply to Nick Clifton from comment #4) > (In reply to H.J. Lu from comment #2) > > I think it is very bad that > > > > $ as -o x.o x.s > > > > fails when x.s contains DWARF5 info generated by GCC 11. Asse

[Bug ld/27200] Bad RiscV64 ELF header flag using ld -b binary

2021-01-18 Thread sch...@linux-m68k.org
https://sourceware.org/bugzilla/show_bug.cgi?id=27200 --- Comment #1 from Andreas Schwab --- A much better solution is to use the .incbin assembler directive instead of ld -b binary. -- You are receiving this mail because: You are on the CC list for the bug.

[Bug ld/27200] New: Bad RiscV64 ELF header flag using ld -b binary

2021-01-18 Thread bztemail at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=27200 Bug ID: 27200 Summary: Bad RiscV64 ELF header flag using ld -b binary Product: binutils Version: unspecified Status: UNCONFIRMED Severity: normal Priority: P2

[Bug gas/27195] Error: file number less than one

2021-01-18 Thread nickc at redhat dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=27195 --- Comment #4 from Nick Clifton --- (In reply to H.J. Lu from comment #2) > I think it is very bad that > > $ as -o x.o x.s > > fails when x.s contains DWARF5 info generated by GCC 11. Assembler shouldn't > require --gdwarf-5 to accept DWA

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

2021-01-18 Thread cvs-commit at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=27193 --- Comment #11 from cvs-commit at gcc dot gnu.org --- The binutils-2_36-branch branch has been updated by H.J. Lu : https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=31768fcb32e1d72fa99fdcedfc967f5437ef81a5 commit 31768fcb32e1d72fa

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

2021-01-18 Thread cvs-commit at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=23169 --- Comment #10 from cvs-commit at gcc dot gnu.org --- The binutils-2_36-branch branch has been updated by H.J. Lu : https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=e9815c344ef0d24405cfaf9968135ad2180649f8 commit e9815c344ef0d2440

[Bug ld/26378] sections initialised only by linker scripts are always read/write

2021-01-18 Thread cvs-commit at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=26378 --- Comment #11 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=326adec374dd43086dbf9bb2b8f18d547389e678 commit 326adec374dd43086dbf9bb2b8f1