[Bug ld/27495] -z start_stop_gc isn't compatible with static glibc

2021-03-02 Thread i at maskray dot me
> It is not just static glibc. PR 19161 has another usage. David Li is a main reviewer of LLVM PGO. He should be happy if GNU ld and gold can now garbage collect PGO sections https://reviews.llvm.org/D97649#inline-915909 (he asked me to add some tests for GNU ld and gold). PR19161 was f

[Bug ld/27441] Small inconsistency in between gold and bfd

2021-03-05 Thread i at maskray dot me
https://sourceware.org/bugzilla/show_bug.cgi?id=27441 Fangrui Song changed: What|Removed |Added CC||i at maskray dot me --- Comment #16

[Bug ld/26105] PROTECTED in executable

2021-03-05 Thread i at maskray dot me
https://sourceware.org/bugzilla/show_bug.cgi?id=26105 Fangrui Song changed: What|Removed |Added CC||i at maskray dot me --- Comment #1

[Bug ld/26404] ld: INSERT [AFTER|BEFORE] variant for extension purposes

2021-03-05 Thread i at maskray dot me
https://sourceware.org/bugzilla/show_bug.cgi?id=26404 --- Comment #8 from Fangrui Song --- (In reply to Nick Clifton from comment #7) > (In reply to Fangrui Song from comment #6) > > > scriptfile defines multiple SECTIONS commands. Each SECTIONS defines exactly > > one output section (for the fi

[Bug gas/27530] New: gas: Support .reloc ., 0, target

2021-03-05 Thread i at maskray dot me
: gas Assignee: unassigned at sourceware dot org Reporter: i at maskray dot me Target Milestone: --- R_*_NONE relocation types do not modify the location but can be used to indicate a dependency between two sections. For example, ARM EHABI uses R_ARM_NONE from an exception

[Bug gas/27530] gas: Support .reloc ., 0, target

2021-03-05 Thread i at maskray dot me
https://sourceware.org/bugzilla/show_bug.cgi?id=27530 --- Comment #1 from Fangrui Song --- OK, I see that https://sourceware.org/git/?p=binutils-gdb.git;a=blobdiff;f=gas/read.c;h=2224c0ed241845eb2e73f59b807dedd617f2a0e0;hp=b2d50272d7fde8ba2af87a29c905c8dd245e08ae;hb=740bdc67c057ee8012327420848eb1

[Bug ld/26706] pad strings in .dynstr

2021-03-06 Thread i at maskray dot me
https://sourceware.org/bugzilla/show_bug.cgi?id=26706 Fangrui Song changed: What|Removed |Added CC||i at maskray dot me --- Comment #1

[Bug ld/27441] Small inconsistency in between gold and bfd

2021-03-09 Thread i at maskray dot me
https://sourceware.org/bugzilla/show_bug.cgi?id=27441 --- Comment #21 from Fangrui Song --- I made a mistake in #comment 16. In GNU ld, the rule is probably: * it is linked at least once in `--no-as-needed` mode (i.e. `--as-needed a.so --no-as-needed a.so` => needed) * or it has a definition re

[Bug ld/27296] ld riscv: Add _fbsd emulations and riscv*-*-freebsd* triples

2021-03-10 Thread i at maskray dot me
https://sourceware.org/bugzilla/show_bug.cgi?id=27296 Fangrui Song changed: What|Removed |Added Resolution|--- |NOTABUG Status|UNCONFIRMED

[Bug ld/27282] ld: Should SHF_GNU_RETAIN/STT_GNU_IFUNC/STB_GNU_UNIQUE work for ELFOSABI_NONE object files?

2021-03-10 Thread i at maskray dot me
https://sourceware.org/bugzilla/show_bug.cgi?id=27282 --- Comment #1 from Fangrui Song --- You can close this one. For SHF_GNU_RETAIN, I've changed clang 13 to set ELFOSABI_GNU. I am happy with the current GNU ld behavior. For STT_GNU_IFUNC, clang has always been using ELFOSABI_NONE. So please

[Bug ld/27565] New: ld: Support input section description keyword: REVERSE

2021-03-11 Thread i at maskray dot me
Component: ld Assignee: unassigned at sourceware dot org Reporter: i at maskray dot me Target Milestone: --- REVERSE complements SORT, e.g. SECTIONS { .aaa : { *(REVERSE(SORT_BY_NAME(.aaa.*))) } } If the user wants to detect some static initialization order

[Bug binutils/27487] nm: Add --just-symbol-name

2021-03-12 Thread i at maskray dot me
https://sourceware.org/bugzilla/show_bug.cgi?id=27487 --- Comment #3 from Fangrui Song --- Hi Nick, thanks for the patch! --format=just-symbols and -j look good to me. I wonder whether it is necessary to reserve -J. -J can probably be used for other purposes. -- You are receiving this mail

[Bug binutils/27497] addr2line: JSON output

2021-03-15 Thread i at maskray dot me
https://sourceware.org/bugzilla/show_bug.cgi?id=27497 --- Comment #1 from Fangrui Song --- https://reviews.llvm.org/D96883 it may soon be accepted :) -- You are receiving this mail because: You are on the CC list for the bug.

[Bug binutils/27584] New: nm riscv: Suppress empty name symbols unless --special-syms?

2021-03-15 Thread i at maskray dot me
: normal Priority: P2 Component: binutils Assignee: unassigned at sourceware dot org Reporter: i at maskray dot me Target Milestone: --- On ARM, mapping symbols are suppressed by default. % arm-linux-gnueabi-gcc-nm test.o

[Bug binutils/27584] nm riscv: Suppress empty name symbols unless --special-syms?

2021-03-15 Thread i at maskray dot me
https://sourceware.org/bugzilla/show_bug.cgi?id=27584 Fangrui Song changed: What|Removed |Added Target||riscv*-*-* CC|

[Bug binutils/27584] nm riscv: Suppress empty name symbols unless --special-syms?

2021-03-15 Thread i at maskray dot me
https://sourceware.org/bugzilla/show_bug.cgi?id=27584 --- Comment #2 from Fangrui Song --- You can try any C file. Due to label differences, there are always lots of STB_LOCAL STT_NOTYPE symbols. It seems that GCC uses .L0 while clang uses an empty name. The question is whether such symbols shou

[Bug binutils/27585] New: addr2line riscv: Skip empty name symbols?

2021-03-15 Thread i at maskray dot me
Component: binutils Assignee: unassigned at sourceware dot org Reporter: i at maskray dot me Target Milestone: --- Extracted from https://reviews.llvm.org/D95916#2627640 This may be related to PR27584. echo 'void _start() {}' > a.c # Make sure riscv64-linux-gnu-b

[Bug binutils/27585] addr2line riscv: Skip empty name symbols?

2021-03-15 Thread i at maskray dot me
https://sourceware.org/bugzilla/show_bug.cgi?id=27585 Fangrui Song changed: What|Removed |Added Target||riscv*-*-* CC|

[Bug binutils/27814] New: objdump crashes when disassembling a non-ELF RISC-V binary

2021-05-03 Thread mtvec at pm dot me
Priority: P2 Component: binutils Assignee: unassigned at sourceware dot org Reporter: mtvec at pm dot me Target Milestone: --- Target: RISC-V Created attachment 13418 --> https://sourceware.org/bugzilla/attachment.cgi?id=13418&action=e

[Bug binutils/27814] objdump crashes when disassembling a non-ELF RISC-V binary

2021-05-03 Thread mtvec at pm dot me
https://sourceware.org/bugzilla/show_bug.cgi?id=27814 --- Comment #2 from mtvec at pm dot me --- I don't have a copyright assignment yet but I would be interested in getting one. What is the procedure for this? This patch is quite trivial by the way so we might be able to skip it in this

[Bug ld/27825] New: ld: -z unique-symbol behavior when .1 exists

2021-05-04 Thread i at maskray dot me
Component: ld Assignee: unassigned at sourceware dot org Reporter: i at maskray dot me Target Milestone: --- [Extracted from my reply to [PATCH v4 00/10] Function Granular KASLR in January] mkdir -p ./a echo 'a: a.1: a.2: nop' > ./a/a.s echo 'a: nop'

[Bug ld/27834] New: ld: Add -Bno-symbolic to cancel -Bsymbolic/-Bsymbolic-functions

2021-05-08 Thread i at maskray dot me
: normal Priority: P2 Component: ld Assignee: unassigned at sourceware dot org Reporter: i at maskray dot me Target Milestone: --- Depending on the workload, -Bsymbolic-functions can be a very effective optimization. -Bno-symbolic makes it easy to exclude

[Bug gold/27869] New: gold lto link corrupt with segmentation fault [signal 11]

2021-05-15 Thread chen.yunxing at me dot com
Priority: P2 Component: gold Assignee: ccoutant at gmail dot com Reporter: chen.yunxing at me dot com CC: ian at airs dot com Target Milestone: --- I use gold with gcc 9.3 do lto link; and int lto-trans phase; failed with message: collect2

[Bug ld/27871] New: ld: Add -Bsymbolic-global-functions variant which only applies to STB_GLOBAL STT_FUNC

2021-05-15 Thread i at maskray dot me
: UNCONFIRMED Severity: normal Priority: P2 Component: ld Assignee: unassigned at sourceware dot org Reporter: i at maskray dot me Target Milestone: --- As a poor man's direct binding feature, -Bsymbolic-functions is incompatible with two things

[Bug ld/27871] ld: Add -Bsymbolic-global-functions which only applies to STB_GLOBAL STT_FUNC

2021-05-15 Thread i at maskray dot me
https://sourceware.org/bugzilla/show_bug.cgi?id=27871 Fangrui Song changed: What|Removed |Added Summary|ld: Add |ld: Add |-Bsymbolic-

[Bug gas/11] [x86] wrong code generated for "call DWORD PTR address" (-masm-intel)

2021-05-15 Thread chen.yunxing at me dot com
t > happens, but what on earth are you linking that has so many output sections? > That just shouldn't happen in any practical application. Solving that may work > around this bug. > > Please add "-v -Wl,--debug=plugin" options, and send me the verbose gcc ou

[Bug gas/11] [x86] wrong code generated for "call DWORD PTR address" (-masm-intel)

2021-05-16 Thread chen.yunxing at me dot com
ound this bug. > > Please add "-v -Wl,--debug=plugin" options, and send me the verbose gcc output > and a tar file of the resulting debug directory. > > -- > You are receiving this mail because: > You reported the bug. -- You are receiving this mail because: You are on the CC list for the bug.

[Bug gold/27869] gold lto link corrupt with segmentation fault [signal 11]

2021-05-17 Thread chen.yunxing at me dot com
> that happens, but what on earth are you linking that has so many output > sections? That just shouldn't happen in any practical application. Solving > that may work around this bug. > > Please add "-v -Wl,--debug=plugin" options, and send me the verbose gcc > outpu

[Bug ld/27871] ld: Add -Bsymbolic-non-weak-functions which only applies to STB_GLOBAL STT_FUNC

2021-05-17 Thread i at maskray dot me
https://sourceware.org/bugzilla/show_bug.cgi?id=27871 Fangrui Song changed: What|Removed |Added Summary|ld: Add |ld: Add |-Bsymbolic-

[Bug ld/27871] ld: Add -Bsymbolic-non-weak-functions which only applies to STB_GLOBAL STT_FUNC

2021-05-19 Thread i at maskray dot me
https://sourceware.org/bugzilla/show_bug.cgi?id=27871 Fangrui Song changed: What|Removed |Added CC||hjl.tools at gmail dot com -- You are

[Bug ld/27871] ld: Add -Bsymbolic-non-weak-functions which only applies to STB_GLOBAL STT_FUNC

2021-05-22 Thread i at maskray dot me
https://sourceware.org/bugzilla/show_bug.cgi?id=27871 --- Comment #1 from Fangrui Song --- ld patch: https://sourceware.org/pipermail/binutils/2021-May/116703.html gold patch: https://sourceware.org/pipermail/binutils/2021-May/116683.html (I was considering -Bsymbolic-global-functions but Peter

[Bug gas/27904] New: aarch64: Internal error in ldst_lo12_determine_real_reloc_type at ../../../gas/config/tc-aarch64.c:5657

2021-05-23 Thread i at maskray dot me
: unspecified Status: UNCONFIRMED Severity: normal Priority: P2 Component: gas Assignee: unassigned at sourceware dot org Reporter: i at maskray dot me Target Milestone: --- % cat a.s ldr q24, [x23, :dtprel_lo12_nc:sym] % ~/Dev/binutils-gdb

[Bug gas/27904] aarch64: Internal error in ldst_lo12_determine_real_reloc_type at ../../../gas/config/tc-aarch64.c:5657

2021-05-23 Thread i at maskray dot me
https://sourceware.org/bugzilla/show_bug.cgi?id=27904 Fangrui Song changed: What|Removed |Added Target||aarch64-* -- You are receiving this m

[Bug gas/27904] aarch64: Internal error in ldst_lo12_determine_real_reloc_type at ../../../gas/config/tc-aarch64.c:5657

2021-05-23 Thread i at maskray dot me
https://sourceware.org/bugzilla/show_bug.cgi?id=27904 Fangrui Song changed: What|Removed |Added CC||nsz at port70 dot net -- You are rece

[Bug ld/27923] New: ld: Support DT_RELR relative relocation format

2021-05-27 Thread i at maskray dot me
Component: ld Assignee: unassigned at sourceware dot org Reporter: i at maskray dot me Target Milestone: --- The latter part of https://sourceware.org/pipermail/binutils/2020-May/111086.html Position independent executables and shared objects with -Bsymbolic/-Bsymbolic

[Bug ld/27923] ld: Support DT_RELR relative relocation format

2021-05-27 Thread i at maskray dot me
https://sourceware.org/bugzilla/show_bug.cgi?id=27923 Fangrui Song changed: What|Removed |Added See Also||https://sourceware.org/bugz

[Bug binutils/27931] New: objcopy --localize-hidden/--keep-global-symbol: drop GRP_COMDAT if the signature symbol becomes local?

2021-05-29 Thread i at maskray dot me
Status: UNCONFIRMED Severity: normal Priority: P2 Component: binutils Assignee: unassigned at sourceware dot org Reporter: i at maskray dot me Target Milestone: --- cat > ./a.s <https://groups.google.com/g/generic-abi/c/2X6mR-s2zoc "GRP_C

[Bug binutils/27931] objcopy --localize-hidden/--keep-global-symbol: drop GRP_COMDAT if the signature symbol becomes local?

2021-05-29 Thread i at maskray dot me
https://sourceware.org/bugzilla/show_bug.cgi?id=27931 Fangrui Song changed: What|Removed |Added CC||jh7370 at my dot bristol.ac.uk -- You

[Bug ld/26404] ld: INSERT [AFTER|BEFORE] variant for extension purposes

2021-06-01 Thread i at maskray dot me
https://sourceware.org/bugzilla/show_bug.cgi?id=26404 --- Comment #9 from Fangrui Song --- I created a ld.lld patch for the --overwrite-script idea https://reviews.llvm.org/D103303 -- You are receiving this mail because: You are on the CC list for the bug.

[Bug ld/27952] New: ld: Disallow ET_DYN DF_1_PIE linker input?

2021-06-03 Thread i at maskray dot me
Component: ld Assignee: unassigned at sourceware dot org Reporter: i at maskray dot me Target Milestone: --- An input ET_EXEC will cause % as /dev/null -o a.o % ld.bfd a.o -o a; ld.bfd a ... ld.bfd: Using an executable file (a) as input to a link is deprecated - support is

[Bug ld/26404] ld: INSERT [AFTER|BEFORE] variant for extension purposes

2021-06-07 Thread i at maskray dot me
https://sourceware.org/bugzilla/show_bug.cgi?id=26404 --- Comment #11 from Fangrui Song --- My latest revision of https://reviews.llvm.org/D103303 switched to a new keyword "OVERWRITE_SECTIONS". I dropped the command line option.One can place more than descriptions, though there is no ordering re

[Bug ld/27973] New: ld x86: Allow direct access to protected function symbols

2021-06-10 Thread i at maskray dot me
Priority: P2 Component: ld Assignee: unassigned at sourceware dot org Reporter: i at maskray dot me Target Milestone: --- // a.c __attribute__((visibility("protected"))) void *foo () { return (void *)foo; } // This roughly maps to: .

[Bug ld/27973] ld x86: Allow direct access to protected function symbols

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

[Bug ld/27973] ld x86: Allow direct access to protected function symbols

2021-06-12 Thread i at maskray dot me
https://sourceware.org/bugzilla/show_bug.cgi?id=27973 Fangrui Song changed: What|Removed |Added CC||fweimer at redhat dot com,

[Bug ld/27990] New: ld --trace: Print the symbol which leads to archive extraction

2021-06-16 Thread i at maskray dot me
: normal Priority: P2 Component: ld Assignee: unassigned at sourceware dot org Reporter: i at maskray dot me Target Milestone: --- % gcc a.c -static -fuse-ld=bfd -Wl,-t /usr/lib/gcc/x86_64-linux-gnu/10/../../../x86_64-linux-gnu/crt1.o /usr/lib/gcc/x86_64-linux

[Bug ld/27990] ld --trace: Print the symbol which leads to archive extraction

2021-06-16 Thread i at maskray dot me
https://sourceware.org/bugzilla/show_bug.cgi?id=27990 Fangrui Song changed: What|Removed |Added CC||ccoutant at gmail dot com,

[Bug ld/27990] ld --trace: Print the symbol which leads to archive extraction

2021-06-16 Thread i at maskray dot me
https://sourceware.org/bugzilla/show_bug.cgi?id=27990 --- Comment #1 from Fangrui Song --- I'll add a comment that on Mach-O, ld64 -why_live gives you clue why a symbol is defined (via a potentially long archive member extraction chain). The --trace feature can make some other debugging tasks co

[Bug gas/27753] -mx86-used-note= defaulting to yes regresses

2021-06-17 Thread i at maskray dot me
https://sourceware.org/bugzilla/show_bug.cgi?id=27753 Fangrui Song changed: What|Removed |Added CC||i at maskray dot me --- Comment #4

[Bug gas/27753] -mx86-used-note= defaulting to yes regresses

2021-06-18 Thread i at maskray dot me
https://sourceware.org/bugzilla/show_bug.cgi?id=27753 --- Comment #6 from Fangrui Song --- A dynamic loader needs PT_GNU_PROPERTY to know the ISA usage of a component. .note.gnu.property makes up PT_GNU_PROPERTY. Therefore, the section needs to SHF_ALLOC to be part of the program image. % cat a.

[Bug binutils/28035] New: objcopy/strip: Don't convert SHT_REL to SHT_RELA

2021-06-30 Thread i at maskray dot me
y: P2 Component: binutils Assignee: unassigned at sourceware dot org Reporter: i at maskray dot me Target Milestone: --- With 'clang' and 'llvm-profdata' built from the main branch of llvm-project (the future clang 13.0.0 release): echo -e '#in

[Bug gas/26406] Extreme assembling time regression with 2.35 and master

2021-07-06 Thread mail at nh2 dot me
https://sourceware.org/bugzilla/show_bug.cgi?id=26406 Niklas Hambüchen changed: What|Removed |Added CC||mail at nh2 dot me -- You are

[Bug binutils/28058] New: 300x performance regression in strip

2021-07-06 Thread mail at nh2 dot me
Component: binutils Assignee: unassigned at sourceware dot org Reporter: mail at nh2 dot me Target Milestone: --- Dear maintainer, I found a performance regression between binutils 2.34 and 2.35.1 that makes stripping a 50 MB `.a` take 300 seconds instead of 1 second. Original

[Bug binutils/28058] 300x performance regression in strip

2021-07-06 Thread mail at nh2 dot me
https://sourceware.org/bugzilla/show_bug.cgi?id=28058 Niklas Hambüchen changed: What|Removed |Added CC||mail at nh2 dot me -- You are

[Bug binutils/28058] 300x performance regression in strip

2021-07-06 Thread mail at nh2 dot me
https://sourceware.org/bugzilla/show_bug.cgi?id=28058 Niklas Hambüchen changed: What|Removed |Added CC||nickc at redhat dot com -- You ar

[Bug binutils/28058] 300x performance regression in strip

2021-07-06 Thread mail at nh2 dot me
https://sourceware.org/bugzilla/show_bug.cgi?id=28058 Niklas Hambüchen changed: What|Removed |Added CC||matz at suse dot de --- Comment #1

[Bug binutils/28058] 300x performance regression in strip

2021-07-07 Thread mail at nh2 dot me
https://sourceware.org/bugzilla/show_bug.cgi?id=28058 Niklas Hambüchen changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug ld/21782] Fail to create static PIE with undefined weak symbols

2021-07-08 Thread i at maskray dot me
https://sourceware.org/bugzilla/show_bug.cgi?id=21782 Fangrui Song changed: What|Removed |Added CC||i at maskray dot me --- Comment #6

[Bug binutils/28058] 300x performance regression in strip

2021-07-09 Thread mail at nh2 dot me
https://sourceware.org/bugzilla/show_bug.cgi?id=28058 --- Comment #6 from Niklas Hambüchen --- Thank you! -- You are receiving this mail because: You are on the CC list for the bug.

[Bug ld/28124] New: ld: Make special sections in a section group GCable

2021-07-22 Thread i at maskray dot me
Component: ld Assignee: unassigned at sourceware dot org Reporter: i at maskray dot me Target Milestone: --- % cat a.s .globl _start, bbb _start: .section .mytext.bbb,"axG",@progbits,bbb,comdat bbb: .byte 0 .section .init_array.bbb,"awG",@init_arra

[Bug ld/28124] ld: Make special sections in a section group GCable

2021-07-23 Thread i at maskray dot me
https://sourceware.org/bugzilla/show_bug.cgi?id=28124 --- Comment #1 from Fangrui Song --- For SHF_LINK_ORDER: % cat a.s .globl _start; _start: nop .section .text.a,"ax",@progbits; ret .section .init_array.a,"awo",@init_array,.text.a; ret % gcc -fuse-ld=bfd a.s -nostdlib -Wl,--gc-sections /usr/b

[Bug binutils/27931] objcopy --localize-hidden/--keep-global-symbol: drop GRP_COMDAT if the signature symbol becomes local?

2021-07-25 Thread i at maskray dot me
https://sourceware.org/bugzilla/show_bug.cgi?id=27931 --- Comment #1 from Fangrui Song --- Ping:) I am updating llvm-objcopy to drop GRP_COMDAT -- You are receiving this mail because: You are on the CC list for the bug.

[Bug gold/22221] add --no-dynamic-linker option

2021-07-28 Thread i at maskray dot me
https://sourceware.org/bugzilla/show_bug.cgi?id=1 Fangrui Song changed: What|Removed |Added CC||i at maskray dot me --- Comment #5

[Bug gas/28157] New: gas: .symver *, *@*, remove cannot be used in relocation

2021-07-31 Thread i at maskray dot me
Priority: P2 Component: gas Assignee: unassigned at sourceware dot org Reporter: i at maskray dot me Target Milestone: --- PR 25295 added the new syntax `, remove` to `.symver`. However, the new syntax cannot be used in relocations. This makes it difficult

[Bug gas/28157] gas: .symver *, *@*, remove cannot be used in relocation

2021-07-31 Thread i at maskray dot me
https://sourceware.org/bugzilla/show_bug.cgi?id=28157 Fangrui Song changed: What|Removed |Added CC||hjl.tools at gmail dot com -- You are

[Bug gas/25295] Gas should have way to define symbol version without exporting its target

2021-07-31 Thread i at maskray dot me
https://sourceware.org/bugzilla/show_bug.cgi?id=25295 --- Comment #23 from Fangrui Song --- .symver *, *, remove The original symbol cannot be used in relocations. This limits `, remove`'s usage. I filed PR gas/28157 -- You are receiving this mail because: You are on the CC list for the bug.

[Bug binutils/28158] nm --dynamic and readelf --dyn-syms vs. copy reloc symbols

2021-07-31 Thread i at maskray dot me
https://sourceware.org/bugzilla/show_bug.cgi?id=28158 Fangrui Song changed: What|Removed |Added CC||i at maskray dot me -- You are

[Bug gold/28195] New: gold: Spurious "warning: wildcard match appears in both version"

2021-08-05 Thread i at maskray dot me
Severity: normal Priority: P2 Component: gold Assignee: ccoutant at gmail dot com Reporter: i at maskray dot me CC: ian at airs dot com Target Milestone: --- cat > ./a.s < ./a.ver <

[Bug gold/28196] New: gold: if .symtab order is: __free_hook, __free_hook@GLIBC_2.2.5, version script incorrectly makes the symbol default versioned

2021-08-05 Thread i at maskray dot me
: binutils Version: unspecified Status: UNCONFIRMED Severity: normal Priority: P2 Component: gold Assignee: ccoutant at gmail dot com Reporter: i at maskray dot me CC: ian at airs dot com Target Milestone: --- cat

[Bug ld/28198] New: ld: Support # as linker script comment marker

2021-08-05 Thread i at maskray dot me
Component: ld Assignee: unassigned at sourceware dot org Reporter: i at maskray dot me Target Milestone: --- Looks like # is supported in version scripts and the VERSION command in a linker script, but is unsupported outside of VERSION. VERSION { # meow meow GLIBC_2.2.5

[Bug gas/28157] gas: .symver *, *@*, remove cannot be used in relocation

2021-08-06 Thread i at maskray dot me
https://sourceware.org/bugzilla/show_bug.cgi?id=28157 --- Comment #2 from Fangrui Song --- (In reply to H.J. Lu from comment #1) > Created attachment 13571 [details] > A patch > > Please try this. I applied this patch. % cat /tmp/c/y.s call __free_hook .symver __free_hook, __free_hook@GLIBC.2.

[Bug gas/28157] gas: .symver *, *@*, remove cannot be used in relocation

2021-08-06 Thread i at maskray dot me
https://sourceware.org/bugzilla/show_bug.cgi?id=28157 --- Comment #3 from Fangrui Song --- For defined non-`remove` single-@, you may want to change the relocations to reference the versioned symbol as well. Then the only difference between defined `remove` single-@ and defined non-`remove` sing

[Bug ld/28218] New: ld: ifunc resolver calls a lazy PLT. When does it work?

2021-08-10 Thread i at maskray dot me
Priority: P2 Component: ld Assignee: unassigned at sourceware dot org Reporter: i at maskray dot me Target Milestone: --- If an ifunc resolver calls a PLT with lazy JUMP_SLOT, should it work? My impression is that this does not necessarily need to work

[Bug gold/27490] gold: Don't produce two output sections __llvm_prf_names

2021-08-10 Thread i at maskray dot me
https://sourceware.org/bugzilla/show_bug.cgi?id=27490 --- Comment #1 from Fangrui Song --- LLVM integrated assembler now sets ELFOSABI_GNU. That said, the gold behavior creating multiple output sections may continue trapping future new section flags. -- You are receiving this mail because: You

[Bug binutils/27408] nm: Have a way to suppress 'no symbols'

2021-08-14 Thread i at maskray dot me
https://sourceware.org/bugzilla/show_bug.cgi?id=27408 Fangrui Song changed: What|Removed |Added Resolution|--- |FIXED Version|unspecified

[Bug ld/28243] New: ld: Assigning a non-default symbol to a different version node should warn

2021-08-18 Thread i at maskray dot me
Severity: normal Priority: P2 Component: ld Assignee: unassigned at sourceware dot org Reporter: i at maskray dot me Target Milestone: --- cat > ./a.s < ./ver <

[Bug gas/28149] debug info with wrong file association

2021-09-17 Thread i at maskray dot me
https://sourceware.org/bugzilla/show_bug.cgi?id=28149 Fangrui Song changed: What|Removed |Added CC||i at maskray dot me --- Comment #5

[Bug ld/28370] New: aarch64: relocation R_AARCH64_ADR_PREL_PG_HI21 against STT_GNU_IFUNC symbol `ifunc' isn't handled by elf64_aarch64_final_link_relocate

2021-09-21 Thread i at maskray dot me
Product: binutils Version: unspecified Status: UNCONFIRMED Severity: normal Priority: P2 Component: ld Assignee: unassigned at sourceware dot org Reporter: i at maskray dot me Target Milestone: --- GCC -fpic may gener

[Bug ld/28370] aarch64: relocation R_AARCH64_ADR_PREL_PG_HI21 against STT_GNU_IFUNC symbol `ifunc' isn't handled by elf64_aarch64_final_link_relocate

2021-09-21 Thread i at maskray dot me
https://sourceware.org/bugzilla/show_bug.cgi?id=28370 Fangrui Song changed: What|Removed |Added Target||aarch64-* -- You are receiving this m

[Bug binutils/28387] New: ld: Move R_*_TLSDESC to .rela.dyn

2021-09-25 Thread i at maskray dot me
: binutils Assignee: unassigned at sourceware dot org Reporter: i at maskray dot me Target Milestone: --- Lazy R_*_TLSDESC resolving has several problems (e.g. data race) and glibc has eagerly resolved R_*_TLSDESC for all(?) supported ports: arm (PR18572)/aarch64 (PR18034)/x86

[Bug binutils/28387] ld: Move R_*_TLSDESC to .rela.dyn

2021-09-25 Thread i at maskray dot me
https://sourceware.org/bugzilla/show_bug.cgi?id=28387 Fangrui Song changed: What|Removed |Added CC||nsz at gcc dot gnu.org -- You are rec

[Bug ld/28452] New: ld: unknown phdr type `PT_GNU_RELRO' (try integer literal)

2021-10-14 Thread i at maskray dot me
erity: normal Priority: P2 Component: ld Assignee: unassigned at sourceware dot org Reporter: i at maskray dot me Target Milestone: --- PT_GNU_RELRO / 1685382482 does not work in the PHDRS command. % cat a.lds PHDRS { exec PT_LOAD; rw PT_LOAD; dy

[Bug ld/28501] New: ld arm: R_ARM_GOTOFF32 referencing a preemptible symbol should be disallowed

2021-10-26 Thread i at maskray dot me
Severity: normal Priority: P2 Component: ld Assignee: unassigned at sourceware dot org Reporter: i at maskray dot me Target Milestone: --- cat >a.s <>> defined in arm.o >>> referenced by arm.o:(.text+0x4) % ld.lld -shared -Bsymbolic a

[Bug ld/28509] New: ld riscv: R_RISCV_JAL referencing a preemptible symbol should be rejected

2021-10-27 Thread i at maskray dot me
Severity: normal Priority: P2 Component: ld Assignee: unassigned at sourceware dot org Reporter: i at maskray dot me Target Milestone: --- j __sigsetjmp .globl __sigsetjmp __sigsetjmp: ret riscv64-linux-gnu-as a.s -o a.o riscv64-linux-gnu-ld -shared a.o

[Bug ld/28509] ld riscv: R_RISCV_JAL referencing a preemptible symbol should be rejected

2021-10-28 Thread i at maskray dot me
https://sourceware.org/bugzilla/show_bug.cgi?id=28509 Fangrui Song changed: What|Removed |Added CC||nelson.chu at sifive dot com -- You a

[Bug ld/28509] ld riscv: R_RISCV_JAL referencing a preemptible symbol should be rejected

2021-10-28 Thread i at maskray dot me
https://sourceware.org/bugzilla/show_bug.cgi?id=28509 --- Comment #1 from Fangrui Song --- glibc commit https://sourceware.org/git/?p=glibc.git;a=commit;h=68389203832ab39dd0dbaabbc4059e7fff51c29b ("riscv: Fix incorrect jal with HIDDEN_JUMPTARGET") could have been avoided if such an error had been

[Bug gas/18599] Use .strtab section for section names in ELF object files

2021-11-01 Thread i at maskray dot me
https://sourceware.org/bugzilla/show_bug.cgi?id=18599 Fangrui Song changed: What|Removed |Added CC||i at maskray dot me --- Comment #4

[Bug gold/28601] New: gold: Support DT_RELR relative relocation format

2021-11-17 Thread i at maskray dot me
Component: gold Assignee: ccoutant at gmail dot com Reporter: i at maskray dot me CC: ian at airs dot com Target Milestone: --- gold version of https://sourceware.org/bugzilla/show_bug.cgi?id=27923 (GNU ld support). I have a patch which will be posted soon

[Bug gold/28601] gold: Support DT_RELR relative relocation format

2021-11-17 Thread i at maskray dot me
https://sourceware.org/bugzilla/show_bug.cgi?id=28601 --- Comment #1 from Fangrui Song --- Patch: https://sourceware.org/pipermail/binutils/2021-November/118567.html ("[PATCH] gold: Add --pack-dyn-relocs=relr for arm/aarch64/x86-64 [PR 28601]") -- You are receiving this mail because: You are on

[Bug binutils/28602] New: binutils/testsuite/lib/binutils-common.exp: Support free-form shell commands and check patterns

2021-11-17 Thread i at maskray dot me
: UNCONFIRMED Severity: normal Priority: P2 Component: binutils Assignee: unassigned at sourceware dot org Reporter: i at maskray dot me Target Milestone: --- binutils/testsuite/binutils-all/ gas/testsuite/gas ld/testsuite/ mainly use dump tests

[Bug binutils/28602] binutils/testsuite/lib/binutils-common.exp: Support free-form shell commands and check patterns

2021-11-17 Thread i at maskray dot me
https://sourceware.org/bugzilla/show_bug.cgi?id=28602 --- Comment #1 from Fangrui Song --- >From https://maskray.me/blog/2021-08-08-toolchain-testing#split-file In Aug 2020, I added `split-file` to llvm-project which allows you to place multiple extra files in one file. It'd be nice if binutils

[Bug ld/27491] ld: relocation R_X86_64_PC32 against undefined protected symbol `__start_xx' can not be used when making a shared object

2021-11-30 Thread i at maskray dot me
https://sourceware.org/bugzilla/show_bug.cgi?id=27491 --- Comment #5 from Fangrui Song --- (In reply to H.J. Lu from comment #4) > (In reply to Fangrui Song from comment #3) > > > > I don't know what happened to the 2010-01 patch. It likely did not let > > __start_ reference retain magic sections

[Bug ld/27491] ld: relocation R_X86_64_PC32 against undefined protected symbol `__start_xx' can not be used when making a shared object

2021-11-30 Thread i at maskray dot me
https://sourceware.org/bugzilla/show_bug.cgi?id=27491 Fangrui Song changed: What|Removed |Added Status|RESOLVED|REOPENED Resolution|NOTABUG

[Bug ld/27491] ld: relocation R_X86_64_PC32 against undefined protected symbol `__start_xx' can not be used when making a shared object

2021-11-30 Thread i at maskray dot me
https://sourceware.org/bugzilla/show_bug.cgi?id=27491 --- Comment #8 from Fangrui Song --- (In reply to H.J. Lu from comment #7) > Created attachment 13811 [details] > A patch > > Try this. Thanks! I applied it locally and the original example works. Adding `.section xx,"aR",unique,2; .byte 2`

[Bug binutils/28689] p_align in ELF program headers should not exceed section alignment

2021-12-13 Thread i at maskray dot me
https://sourceware.org/bugzilla/show_bug.cgi?id=28689 Fangrui Song changed: What|Removed |Added CC||i at maskray dot me --- Comment #4

[Bug binutils/28689] p_align in ELF program headers should not exceed section alignment

2021-12-13 Thread i at maskray dot me
https://sourceware.org/bugzilla/show_bug.cgi?id=28689 --- Comment #5 from Fangrui Song --- (In reply to Fangrui Song from comment #4) > (In reply to H.J. Lu from comment #2) > > One problem: > > [...] > > File offsets are changed. > > For objcopy, it is important to not transform the file to dec

[Bug binutils/28759] New: ar: Add --thin to avoid 'T' conflict with X/Open System Interface

2022-01-10 Thread i at maskray dot me
Severity: normal Priority: P2 Component: binutils Assignee: unassigned at sourceware dot org Reporter: i at maskray dot me Target Milestone: --- https://pubs.opengroup.org/onlinepubs/9699919799/utilities/ar.html -T [XSI] [Option Start] Allow filename tru

[Bug binutils/28759] ar: Add --thin to avoid 'T' conflict with X/Open System Interface

2022-01-10 Thread i at maskray dot me
https://sourceware.org/bugzilla/show_bug.cgi?id=28759 Fangrui Song changed: What|Removed |Added CC||nickc at redhat dot com -- You are re

[Bug binutils/28759] ar: Add --thin to avoid 'T' conflict with X/Open System Interface

2022-01-10 Thread i at maskray dot me
https://sourceware.org/bugzilla/show_bug.cgi?id=28759 --- Comment #1 from Fangrui Song --- Patch: https://sourceware.org/pipermail/binutils/2022-January/119250.html -- You are receiving this mail because: You are on the CC list for the bug.

[Bug binutils/28759] ar: Add --thin to avoid 'T' conflict with X/Open System Interface

2022-01-11 Thread i at maskray dot me
https://sourceware.org/bugzilla/show_bug.cgi?id=28759 Fangrui Song changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug binutils/28772] Provide /PASSTHRU/ section rule similar to /DISCARD/

2022-01-12 Thread i at maskray dot me
https://sourceware.org/bugzilla/show_bug.cgi?id=28772 Fangrui Song changed: What|Removed |Added CC||i at maskray dot me -- You are

<    1   2   3   4   5   6   >