[Bug binutils/14663] strip --only-keep-debug doesn't remove .text, etc.

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

[Bug ld/25020] New: Report "sh_link of section ... points to discarded section ..." for more input sections

2019-09-19 Thread i at maskray dot me
Status: UNCONFIRMED Severity: normal Priority: P2 Component: ld Assignee: unassigned at sourceware dot org Reporter: i at maskray dot me Target Milestone: --- bfd/elf.c static bfd_boolean assign_section_numbers (bfd *abfd, struct bfd_link_info

[Bug ld/25021] New: Garbage collecting non-alloc SHF_LINK_ORDER sections

2019-09-19 Thread i at maskray dot me
Component: ld Assignee: unassigned at sourceware dot org Reporter: i at maskray dot me Target Milestone: --- clang -fstack-size-section emits a non-alloc SHF_LINK_ORDER section .stack_sizes linking to .text [ 2] .text PROGBITS

[Bug binutils/24942] objcopy: Add option for setting section alignment

2019-10-02 Thread i at maskray dot me
https://sourceware.org/bugzilla/show_bug.cgi?id=24942 --- Comment #13 from Fangrui Song --- Ping:) FWIW, I have a patch to implement --set-section-alignment in llvm-objcopy https://reviews.llvm.org/D67656 . I don't want to cause gratuitous differences from GNU objcopy, so I haven't committed

[Bug binutils/24942] objcopy: Add option for setting section alignment

2019-09-23 Thread i at maskray dot me
https://sourceware.org/bugzilla/show_bug.cgi?id=24942 --- Comment #9 from Fangrui Song --- I don't require the support for non power-of-2 alignment. I just want to say --set-section-alignment .foo=8 => sh_addralign=256 is counterintuitive. It is not what readelf -S displays. (objdump -h

[Bug ld/24526] Generalize GC support for SHF_LINK_ORDER

2019-09-20 Thread i at maskray dot me
https://sourceware.org/bugzilla/show_bug.cgi?id=24526 Fangrui Song changed: What|Removed |Added Component|gold|ld --- Comment #1 from Fangrui Song

[Bug ld/25022] New: Make /DISCARD/ discard SHF_LINK_ORDER sections

2019-09-20 Thread i at maskray dot me
Component: ld Assignee: unassigned at sourceware dot org Reporter: i at maskray dot me Target Milestone: --- This depends on https://sourceware.org/bugzilla/show_bug.cgi?id=24526 (Generalize GC support for SHF_LINK_ORDER) # a.script SECTIONS { /DISCARD/ : { *(.foo

[Bug ld/25154] New: Orphan section ".got" is placed differently

2019-11-02 Thread i at maskray dot me
iority: P2 Component: ld Assignee: unassigned at sourceware dot org Reporter: i at maskray dot me Target Milestone: --- cat > a.x < a.s < b.s <

[Bug ld/25236] common symbol: don't consider definitions in shared objects

2019-12-06 Thread i at maskray dot me
https://sourceware.org/bugzilla/show_bug.cgi?id=25236 --- Comment #6 from Fangrui Song --- To make sure we are on the same page. In the case that both a.o and a.so define the common symbol: The definition from a.o wins. --version-script should apply versions on the definition. At runtime, the

[Bug gas/25284] New: Disallow .align .p2align .balign without operands

2019-12-15 Thread i at maskray dot me
Component: gas Assignee: unassigned at sourceware dot org Reporter: i at maskray dot me Target Milestone: --- These directives are allowed without an operand. .balign .align .p2align Such forms should probably be removed. -- You are receiving this mail because: You

[Bug ld/25236] common symbol: don't consider definitions in shared objects

2019-12-06 Thread i at maskray dot me
https://sourceware.org/bugzilla/show_bug.cgi?id=25236 --- Comment #3 from Fangrui Song --- Maybe we should discuss on the generic ABI mailing list. It is very late here (01:00) so I'll not do that now. If you create a thread, can you CC me? My feeling is that a STN_COMMON (STT_COMMON)

[Bug gas/14891] Section name and symbol name clash

2019-12-15 Thread i at maskray dot me
https://sourceware.org/bugzilla/show_bug.cgi?id=14891 Fangrui Song changed: What|Removed |Added CC||i at maskray dot me --- Comment #2

[Bug binutils/25279] New: vmload/vmrun/vmsave: objdump -d should print the operand %rax

2019-12-14 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: --- % cat a.s vmload %rax vmrun %rax vmsave %rax % as a.s -o a.o % objdump -d a.o a.o: file format elf64-x86-64

[Bug ld/23825] Linker creates COPY relocs for reference to TLS symbols

2019-11-18 Thread i at maskray dot me
https://sourceware.org/bugzilla/show_bug.cgi?id=23825 Fangrui Song changed: What|Removed |Added CC||i at maskray dot me --- Comment #6

[Bug ld/25236] New: common symbol: don't consider definitions in shared objects

2019-11-30 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: --- Originally reported at https://bugs.llvm.org//show_bug.cgi?id=43748 but it turns out to be related to openmpi and GNU ld

[Bug ld/25236] common symbol: don't consider definitions in shared objects

2019-11-30 Thread i at maskray dot me
https://sourceware.org/bugzilla/show_bug.cgi?id=25236 --- Comment #1 from Fangrui Song --- symbol versioning is always enabled. openmpi may need a workaround https://github.com/open-mpi/ompi/issues/7209 -- You are receiving this mail because: You are on the CC list for the bug.

[Bug ld/25207] New: ld: support --image-base= for elf (and -Ttext-segment -z separate-code strangeness)

2019-11-19 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.c int main() {} % gcc -fuse-ld=bfd a.c -Wl,-Ttext-segment,0x30 -z noseparate-code -o a; readelf

[Bug ld/25020] Report "sh_link of section ... points to discarded section ..." for more input sections

2019-09-22 Thread i at maskray dot me
https://sourceware.org/bugzilla/show_bug.cgi?id=25020 --- Comment #2 from Fangrui Song --- I mean the error should probably be issued for any discarded section. .globl _start _start: call .foo1 call baz0 call baz1 .section .foo0,"a" .byte 0 .section .foo1,"a" .byte 0 ## The linked-to

[Bug binutils/24942] objcopy: Add option for setting section alignment

2019-09-25 Thread i at maskray dot me
https://sourceware.org/bugzilla/show_bug.cgi?id=24942 --- Comment #12 from Fangrui Song --- > Created attachment 12002 [details] if (palign <= 0 || palign & (palign-1)) can be used to simplify the code. -- You are receiving this mail because: You are on the CC list for the bug.

[Bug gas/25551] New: R_X86_64_PLT32 referencing .L should not emit an outstanding relocation

2020-02-13 Thread i at maskray dot me
Severity: normal Priority: P2 Component: gas Assignee: unassigned at sourceware dot org Reporter: i at maskray dot me Target Milestone: --- Context: https://github.com/ClangBuiltLinux/linux/issues/872 .section.init.text,"ax"

[Bug ld/25591] Should /DISCARD/ : { *(.symtab) *(.strtab) } work?

2020-03-04 Thread i at maskray dot me
https://sourceware.org/bugzilla/show_bug.cgi?id=25591 --- Comment #3 from Fangrui Song --- SECTIONS { .pltfoo : { a.o(.plt) }} can rename the synthetic section .plt, so I don't see a problem allowing an input section description to match a synthetic section. -- You are receiving this mail

[Bug ld/25591] Should /DISCARD/ : { *(.symtab) *(.strtab) } work?

2020-03-04 Thread i at maskray dot me
https://sourceware.org/bugzilla/show_bug.cgi?id=25591 --- Comment #2 from Fangrui Song --- SECTIONS { /DISCARD/ : { *(.symtab) } } deletes .symtab SECTIONS { /DISCARD/ : { *(.strtab) } } deletes .strtab When combined, it is like --strip-all (normally there is no need for .symtab_shndx)

[Bug binutils/22829] objcopy/strip removes PT_GNU_RELRO from lld binaries

2020-02-23 Thread i at maskray dot me
https://sourceware.org/bugzilla/show_bug.cgi?id=22829 Fangrui Song changed: What|Removed |Added CC||i at maskray dot me --- Comment #12

[Bug ld/25591] New: Should /DISCARD/ : { *(.symtab) *(.strtab) } work?

2020-02-23 Thread i at maskray dot me
: P2 Component: ld Assignee: unassigned at sourceware dot org Reporter: i at maskray dot me Target Milestone: --- In lld, SECTIONS { /DISCARD/ : { *(.symtab) *(.strtab) } } can discard the synthesized .symtab and .strtab (probably since https://reviews.llvm.org

[Bug gas/25381] Support section flag 'o' (SHF_LINK_ORDER)

2020-02-01 Thread i at maskray dot me
https://sourceware.org/bugzilla/show_bug.cgi?id=25381 --- Comment #4 from Fangrui Song --- > .section __patchable_function_entries,"awo",@progbits,foo > .section __patchable_function_entries,"awo",@progbits,bar clang's integrated assembler uses either section_name or the pair

[Bug gas/25380] Support section linkage 'unique' (multiple sections with the same name)

2020-02-01 Thread i at maskray dot me
https://sourceware.org/bugzilla/show_bug.cgi?id=25380 --- Comment #5 from Fangrui Song --- In clang's integrated assembler, a unique ID is an `unsigned` (0~0x). I think any sufficiently large upper bound (larger than reasonable numbers of sections) should work. Note, .section

[Bug ld/25500] New: [powerpc] R_PPC_REL16_LO/R_PPC64_REL16_LO referencing a preemptible symbol should be rejected

2020-02-03 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: --- x86-64 (and many other archs) cat > b.s < a.s <

[Bug ld/25500] [powerpc] R_PPC_REL16_LO/R_PPC64_REL16_LO referencing a preemptible symbol should be rejected

2020-02-03 Thread i at maskray dot me
https://sourceware.org/bugzilla/show_bug.cgi?id=25500 Fangrui Song changed: What|Removed |Added Target||powerpc* -- You are receiving this

[Bug ld/25500] [powerpc] R_PPC_REL16_LO/R_PPC64_REL16_LO referencing a preemptible symbol should be rejected

2020-02-03 Thread i at maskray dot me
https://sourceware.org/bugzilla/show_bug.cgi?id=25500 Fangrui Song changed: What|Removed |Added CC||amodra at gmail dot com -- You are

[Bug ld/25570] New: [ld] Duplicate "warning: changing start of section"

2020-02-17 Thread i at maskray dot me
iority: P2 Component: ld Assignee: unassigned at sourceware dot org Reporter: i at maskray dot me Target Milestone: --- cat > a.x < a.s <

[Bug binutils/25444] objcopy : Floating point exception in _bfd_elf_compute_section_file_positions

2020-02-23 Thread i at maskray dot me
https://sourceware.org/bugzilla/show_bug.cgi?id=25444 Fangrui Song changed: What|Removed |Added CC||i at maskray dot me --- Comment #5

[Bug binutils/25237] Strip leaves file offset of empty PT_LOAD segment point past end of file

2020-02-23 Thread i at maskray dot me
https://sourceware.org/bugzilla/show_bug.cgi?id=25237 Fangrui Song changed: What|Removed |Added CC||i at maskray dot me --- Comment #9

[Bug binutils/25371] [objcopy] add support for setting SHF_EXCLUDE flag for sections

2020-01-15 Thread i at maskray dot me
https://sourceware.org/bugzilla/show_bug.cgi?id=25371 Fangrui Song changed: What|Removed |Added CC||i at maskray dot me --- Comment #3

[Bug gas/25380] New: Support section linkage 'unique' (multiple sections with the same name)

2020-01-13 Thread i at maskray dot me
Severity: normal Priority: P2 Component: gas Assignee: unassigned at sourceware dot org Reporter: i at maskray dot me Target Milestone: --- Clang's integrated assembler supports multiple section with the same name. % cat a.s .section.text,&qu

[Bug gas/25381] New: Support section flag 'o' (SHF_LINK_ORDER)

2020-01-13 Thread i at maskray dot me
Component: gas Assignee: unassigned at sourceware dot org Reporter: i at maskray dot me Target Milestone: --- % cat a.c void foo(){} void bar(){} % clang -fpatchable-function-entry=2 -ffunction-sections -S a.c # clang HEAD

[Bug binutils/25371] [objcopy] add support for setting SHF_EXCLUDE flag for sections

2020-01-16 Thread i at maskray dot me
https://sourceware.org/bugzilla/show_bug.cgi?id=25371 --- Comment #4 from Fangrui Song --- https://sourceware.org/ml/binutils/2020-01/msg00186.html in the spirit of a previous patch by HJ. Lu that makes SHF_EXCLUDE generic rather than processor-specific. -- You are receiving this mail

[Bug gas/25406] New: [ARM] pcrel relocations referencing STB_GLOBAL symbols are resolved at assembly time

2020-01-16 Thread i at maskray dot me
Severity: normal Priority: P2 Component: gas Assignee: unassigned at sourceware dot org Reporter: i at maskray dot me Target Milestone: --- % cat pcrel-global.s .syntax unified .globl foo foo: ldrd r0, r1, foo @ arm_pcrel_10_unscaled vldr d0, foo

[Bug binutils/25809] [readelf] --dyn-syms: Display a warning if SHT_DYNSYM and PT_DYNAMIC disagree about the location

2020-04-09 Thread i at maskray dot me
https://sourceware.org/bugzilla/show_bug.cgi?id=25809 Fangrui Song changed: What|Removed |Added CC||hjl.tools at gmail dot com

[Bug binutils/25809] New: [readelf] --dyn-syms: Display a warning if SHT_DYNSYM and PT_DYNAMIC disagree about the location

2020-04-09 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: --- --use-dynamic is a prehistoric option (available at "19990502 sourceware import"

[Bug ld/25806] New: [ld] Search for input files relative to the current linker script

2020-04-08 Thread i at maskray dot me
: enhancement Priority: P2 Component: ld Assignee: unassigned at sourceware dot org Reporter: i at maskray dot me Target Milestone: --- This is a feature request. commit 51dee2fec3afad5e6fc9f78b8c1d8486ebf3a334 added the feature for gold. // p/libm.a INPUT

[Bug ld/25806] [ld] Search for input files relative to the current linker script

2020-04-08 Thread i at maskray dot me
https://sourceware.org/bugzilla/show_bug.cgi?id=25806 Fangrui Song changed: What|Removed |Added CC||amodra at gmail dot com -- You are

[Bug ld/25806] [ld] Search for input files relative to the current linker script

2020-04-09 Thread i at maskray dot me
https://sourceware.org/bugzilla/show_bug.cgi?id=25806 --- Comment #1 from Fangrui Song --- I made some investigations. Notation: CWD => current working directory For a relative pathname (not absolute path or -l) in INPUT() or GROUP(): * GNU ld searches in CWD then in -L * gold searches in the

[Bug gas/25406] [ARM] pcrel relocations referencing STB_GLOBAL symbols are resolved at assembly time

2020-04-15 Thread i at maskray dot me
https://sourceware.org/bugzilla/show_bug.cgi?id=25406 --- Comment #3 from Fangrui Song --- Alternatively, we can reject such non-STB_LOCAL labels when they may be preemptible. The scheme will still be consistent with the rest of ELF models and architectures. -- You are receiving this mail

[Bug ld/25784] [ld] Reject addresses outside [0,2**32) for ELFCLASS32

2020-04-07 Thread i at maskray dot me
https://sourceware.org/bugzilla/show_bug.cgi?id=25784 Fangrui Song changed: What|Removed |Added CC||amodra at gmail dot com -- You are

[Bug gas/25789] [as] x86: duplicate jmp when .nops and jmp are used together

2020-04-06 Thread i at maskray dot me
https://sourceware.org/bugzilla/show_bug.cgi?id=25789 --- Comment #2 from Fangrui Song --- > Gas limits number of executed NOP paddings to 7 NOPs: Then .nops with a large immediate should be rejected. A smaller immediate for .nops works, e.g. foo: ret .nops 28 jmp foo -- You are

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

2020-04-06 Thread i at maskray dot me
https://sourceware.org/bugzilla/show_bug.cgi?id=25295 --- Comment #12 from Fangrui Song --- (In reply to H.J. Lu from comment #11) > (In reply to Fangrui Song from comment #10) > > Thanks for CCing me. I'm interested on this topic. > > > > I expressed my feelings on > >

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

2020-04-06 Thread i at maskray dot me
https://sourceware.org/bugzilla/show_bug.cgi?id=25295 --- Comment #10 from Fangrui Song --- Thanks for CCing me. I'm interested on this topic. I expressed my feelings on https://sourceware.org/pipermail/binutils/2019-November/108784.html and https://sourceware.org/bugzilla/show_bug.cgi?id=23840

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

2020-04-06 Thread i at maskray dot me
https://sourceware.org/bugzilla/show_bug.cgi?id=25295 --- Comment #15 from Fangrui Song --- (In reply to H.J. Lu from comment #14) > Created attachment 12440 [details] > The updated patch > > Also support > > [hjl@gnu-cfl-2 pr25295]$ cat a.s > .global foo > foo: > ret >

[Bug ld/25806] [ld] Search for input files relative to the current linker script

2020-04-20 Thread i at maskray dot me
https://sourceware.org/bugzilla/show_bug.cgi?id=25806 --- Comment #4 from Fangrui Song --- Proposed patch: https://sourceware.org/pipermail/binutils/2020-April/110743.html -- You are receiving this mail because: You are on the CC list for the bug.

[Bug ld/24613] ld --help for -z defs and --no-undefined

2020-04-10 Thread i at maskray dot me
https://sourceware.org/bugzilla/show_bug.cgi?id=24613 --- Comment #8 from Fangrui Song --- (In reply to Nick Clifton from comment #7) > Hi Fangrui, > > > -Wl,--warn-unresolved-symbols is very rare. Making `-z defs > > --warn-unresolved-symbols` warn rather than error may be fine. It is > >

[Bug binutils/25750] GNU as has inconsistent behavior when expanding .macro that takes as input directives with arguments

2020-04-12 Thread i at maskray dot me
https://sourceware.org/bugzilla/show_bug.cgi?id=25750 --- Comment #12 from Fangrui Song --- Forgot to upload the assembly file I used for the `x86_64-linux-gnu-as a.s && objdump -s` command in Comment 11 % cat a.s .macro foo a:vararg .ascii "\a" .endm foo a, b (c d), e -- You are receiving

[Bug binutils/25750] GNU as has inconsistent behavior when expanding .macro that takes as input directives with arguments

2020-04-12 Thread i at maskray dot me
https://sourceware.org/bugzilla/show_bug.cgi?id=25750 --- Comment #11 from Fangrui Song --- (In reply to Nick Clifton from comment #9) > (In reply to Jian Cai from comment #8) > Hi Jian, > > > .macro foo insn1 insn2 > > \insn1 > > \insn2 > > .endm > > > > foo .section .sec1, .section .sec2 >

[Bug binutils/25750] GNU as has inconsistent behavior when expanding .macro that takes as input directives with arguments

2020-04-12 Thread i at maskray dot me
https://sourceware.org/bugzilla/show_bug.cgi?id=25750 --- Comment #10 from Fangrui Song --- (In reply to Jian Cai from comment #8) Hi Jian, > I did however find a variation that worked and did not have any behavioural > inconsistencies: For .macro memorize a \a .endm memorize .long

[Bug binutils/19104] [PATCH] 'add symbol' feature in objcopy

2020-04-07 Thread i at maskray dot me
https://sourceware.org/bugzilla/show_bug.cgi?id=19104 Fangrui Song changed: What|Removed |Added CC||i at maskray dot me --- Comment #13

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

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

[Bug binutils/16673] [Feature Request] Support "-R patterns" for strip

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

[Bug ld/25806] [ld] Search for input files relative to the current linker script

2020-04-09 Thread i at maskray dot me
https://sourceware.org/bugzilla/show_bug.cgi?id=25806 --- Comment #3 from Fangrui Song --- (In reply to Nick Clifton from comment #2) > Hi Fangrui, > > > gold a.o p/libm.a > > > > gold can find p/libm.a.1 even if -L p is not specified. > > A couple of questions: > > 1. Does the extra search

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

2020-04-06 Thread i at maskray dot me
https://sourceware.org/bugzilla/show_bug.cgi?id=25295 Fangrui Song changed: What|Removed |Added CC||amodra at gmail dot com -- You are

[Bug ld/25784] New: [ld] Reject addresses outside [0,2**32) for ELFCLASS32

2020-04-04 Thread i at maskray dot me
Component: ld Assignee: unassigned at sourceware dot org Reporter: i at maskray dot me Target Milestone: --- cat > a.lds <

[Bug ld/13406] version script: please allow anonymous tag to be combined with other tags

2020-04-04 Thread i at maskray dot me
https://sourceware.org/bugzilla/show_bug.cgi?id=13406 Fangrui Song changed: What|Removed |Added CC||i at maskray dot me --- Comment #10

[Bug ld/16710] The option --dynamic-linker does not work for shared libraries

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

[Bug ld/18912] Off-by-one error in ld documentation

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

[Bug ld/25694] R_RISCV_TPREL_HI20 relocations cause riscv64 to add TEXTREL bit on executables

2020-04-04 Thread i at maskray dot me
https://sourceware.org/bugzilla/show_bug.cgi?id=25694 Fangrui Song changed: What|Removed |Added CC||i at maskray dot me --- Comment #3

[Bug ld/16548] Ld does not handle arbitrary .plt/.got displacements

2020-04-04 Thread i at maskray dot me
https://sourceware.org/bugzilla/show_bug.cgi?id=16548 Fangrui Song changed: What|Removed |Added CC||i at maskray dot me --- Comment #3

[Bug ld/24613] ld --help for -z defs and --no-undefined

2020-04-05 Thread i at maskray dot me
https://sourceware.org/bugzilla/show_bug.cgi?id=24613 Fangrui Song changed: What|Removed |Added CC||i at maskray dot me --- Comment #6

[Bug ld/24685] [RISCV] R_RISCV_CALL_PLT should not create a canonical PLT in -no-pie mode

2020-04-05 Thread i at maskray dot me
https://sourceware.org/bugzilla/show_bug.cgi?id=24685 --- Comment #2 from Fangrui Song --- Ping :/ -- You are receiving this mail because: You are on the CC list for the bug.

[Bug ld/24769] [RISCV] partial RELRO doesn't work: .got is not in PT_GNU_RELRO

2020-04-05 Thread i at maskray dot me
https://sourceware.org/bugzilla/show_bug.cgi?id=24769 Fangrui Song changed: What|Removed |Added CC||wilson at gcc dot gnu.org -- You are

[Bug ld/24600] Support --start-lib --end-lib

2020-04-05 Thread i at maskray dot me
https://sourceware.org/bugzilla/show_bug.cgi?id=24600 Fangrui Song changed: What|Removed |Added CC||amodra at gmail dot com --- Comment

[Bug ld/20402] ld.bfd for emits *_RELATIVE relocations against SHN_ABS symbols

2020-04-05 Thread i at maskray dot me
https://sourceware.org/bugzilla/show_bug.cgi?id=20402 Fangrui Song changed: What|Removed |Added CC||i at maskray dot me --- Comment #9

[Bug gas/25789] New: [as] duplicate jmp when .nops and jmp are used together

2020-04-05 Thread i at maskray dot me
Priority: P2 Component: gas Assignee: unassigned at sourceware dot org Reporter: i at maskray dot me Target Milestone: --- foo: ret .nops 88 jmp foo => : 0: c3 ret 1: eb 56 jmp

[Bug gas/25789] [as] x86: duplicate jmp when .nops and jmp are used together

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

[Bug gas/25768] .stab: sh_size%sh_entsize!=0 for 64-bit architectures

2020-04-02 Thread i at maskray dot me
https://sourceware.org/bugzilla/show_bug.cgi?id=25768 Fangrui Song changed: What|Removed |Added Summary|.stab: |.stab:

[Bug gas/25768] New: .stab: sh_size%sh_entsize!=0

2020-04-02 Thread i at maskray dot me
Assignee: unassigned at sourceware dot org Reporter: i at maskray dot me Target Milestone: --- sh_entsize(.stab) seems to be wrong since "19990502 sourceware import". https://sourceware.org/pipermail/binutils/2020-April/110529.html can probably fix it. I noticed tha

[Bug gas/23840] .symver fails with multiple versions [...] for symbol `...'

2020-03-31 Thread i at maskray dot me
https://sourceware.org/bugzilla/show_bug.cgi?id=23840 Fangrui Song changed: What|Removed |Added CC||i at maskray dot me --- Comment #2

[Bug ld/25754] New: [ld][gold] x86: don't relax GOTPCRELX for SHN_ABS

2020-03-31 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 <: 1000: 48 8d 05 23 f0 ff fflea-0xfdd(%rip),%rax# 2a gold has the same issue. See https://gcc.gnu.org/bu

[Bug ld/25749] PC relocation against SHN_ABS symbol in PIE or shared library should be disallowed

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

[Bug ld/25891] New: ld: Implement --[no-]apply-dynamic-relocs

2020-04-29 Thread i at maskray dot me
Component: ld Assignee: unassigned at sourceware dot org Reporter: i at maskray dot me Target Milestone: --- GNU ld supports --no-apply-dynamic-relocs, but only for aarch64: % aarch64-linux-gnu-ld --no-apply-dynamic-relocs a.o % aarch64-linux-gnu-ld --apply-dynamic-relocs a.o

[Bug binutils/25750] GNU as has inconsistent behavior when expanding .macro that takes as input directives with arguments

2020-04-14 Thread i at maskray dot me
https://sourceware.org/bugzilla/show_bug.cgi?id=25750 --- Comment #14 from Fangrui Song --- Yes. I would hope do_scrub_chars() did not squeeze a sequence of spaces or dropped spaces before '(', but making such a change would just be disruptive now, see

[Bug ld/26002] New: ld: Should an unversioned undefined symbol use VER_NDX_GLOBAL instead of VER_NDX_LOCAL?

2020-05-16 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: --- echo 'v1 { f; };' > a.ver echo '.globl f_v1; .symver f_v1,f@v1; f_v1: g:' | as - -o a.o ld.bfd -sha

[Bug gold/25925] New: --export-dynamic-symbol should drop implicit -u

2020-05-05 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: --- --export-dynamic-symbol currently combines --dynamic-list and -u. The two features are actually orthogonal and should

[Bug gold/25948] New: gold: in --start-group, an undefined symbol in shared object does not fetch a previous archive

2020-05-07 Thread i at maskray dot me
: 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: --- as /dev/null -o a.o echo '.globl foo; .type foo,@function; foo

[Bug ld/26018] New: Make --dynamic-list* override -Bsymbolic and -Bsymbolic-functions

2020-05-20 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: --- The interaction is currently quite complex. To make the behavior easier to reasonable, let's make --dynamic-list* override

[Bug ld/26018] Make --dynamic-list* override -Bsymbolic and -Bsymbolic-functions

2020-05-23 Thread i at maskray dot me
https://sourceware.org/bugzilla/show_bug.cgi?id=26018 --- Comment #3 from Fangrui Song --- I don't agree with the resolution. Copying my reply https://sourceware.org/pipermail/binutils/2020-May/111223.html here IIRC, currently -Bsymbolic --dynamic-list a.list != --dynamic-list a.list

[Bug ld/25910] Support --export-dynamic-symbol $symbol

2020-05-03 Thread i at maskray dot me
https://sourceware.org/bugzilla/show_bug.cgi?id=25910 --- Comment #1 from Fangrui Song --- https://sourceware.org/pipermail/binutils/2020-May/110930.html [PATCH] ld: Add --export-dynamic-symbol Note, in gold and lld, --export-dynamic-symbol foo does not add foo to .symtab if foo does not exist.

[Bug ld/25910] New: Support --export-dynamic-symbol $symbol

2020-05-02 Thread i at maskray dot me
Component: ld Assignee: unassigned at sourceware dot org Reporter: i at maskray dot me Target Milestone: --- It specify a symbol that should be added to the dynamic symbol table (like an addition to --dynamic-list). It can also trigger linking of additional modules from archive

[Bug ld/20824] enable warn-shared-textrel by default

2020-05-24 Thread i at maskray dot me
https://sourceware.org/bugzilla/show_bug.cgi?id=20824 Fangrui Song changed: What|Removed |Added CC||i at maskray dot me --- Comment #3

[Bug ld/22909] Expand --warn-shared-textrel support to all executables, not only PIC objects

2020-05-25 Thread i at maskray dot me
https://sourceware.org/bugzilla/show_bug.cgi?id=22909 Fangrui Song changed: What|Removed |Added CC||i at maskray dot me --- Comment #4

[Bug binutils/3182] objcopy doesn't update section group when a member is removed

2020-05-25 Thread i at maskray dot me
https://sourceware.org/bugzilla/show_bug.cgi?id=3182 Fangrui Song changed: What|Removed |Added CC||i at maskray dot me --- Comment #3

[Bug gold/26039] gold doesn't add PIE flag

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

[Bug ld/26047] New: Don't allow linking ET_EXEC

2020-05-26 Thread i at maskray dot me
Assignee: unassigned at sourceware dot org Reporter: i at maskray dot me Target Milestone: --- % as /dev/null -o a.o % ld.bfd a.o -o a ld.bfd: warning: cannot find entry symbol _start; defaulting to 00401000 # a is an ET_EXEC ## GNU ld allows input ET_EXEC like an ET_REL

[Bug gas/26126] New: aarch64/mips: reject symbolic operand of an instruction taking an immediate operand

2020-06-16 Thread i at maskray dot me
Severity: normal Priority: P2 Component: gas Assignee: unassigned at sourceware dot org Reporter: i at maskray dot me Target Milestone: --- Rigid: % powerpc64le-linux-gnu-as <<< 'or 3, 3, start-.; start:' # good % powerpc64le-

[Bug binutils/26153] .gnu.version reported as orphan section even when not emitted

2020-06-23 Thread i at maskray dot me
https://sourceware.org/bugzilla/show_bug.cgi?id=26153 Fangrui Song changed: What|Removed |Added CC||i at maskray dot me --- Comment #3

[Bug binutils/26168] New: Feature request: support .symtab .strtab and .shstrtab as output section descriptions

2020-06-24 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: --- Many other synthesized sections can be renamed or discarded, so it seems natural to extend

[Bug gold/25975] --dynamic-list doesn't work correctly

2020-06-27 Thread i at maskray dot me
https://sourceware.org/bugzilla/show_bug.cgi?id=25975 --- Comment #22 from Fangrui Song --- (In reply to H.J. Lu from comment #20) > // If the symbol was forced dynamic in a --dynamic-list file > // or an --export-dynamic-symbol option, add it. > if (!this->is_from_dynobj() > &&

[Bug gold/25925] --export-dynamic-symbol should drop implicit -u

2020-06-27 Thread i at maskray dot me
https://sourceware.org/bugzilla/show_bug.cgi?id=25925 --- Comment #1 from Fangrui Song --- Patch: https://sourceware.org/pipermail/binutils/2020-June/111641.html -- You are receiving this mail because: You are on the CC list for the bug.

[Bug gold/26039] gold doesn't add PIE flag

2020-06-27 Thread i at maskray dot me
https://sourceware.org/bugzilla/show_bug.cgi?id=26039 --- Comment #3 from Fangrui Song --- Can be closed now. -- You are receiving this mail because: You are on the CC list for the bug.

[Bug ld/26119] New: ld: Support --reproduce

2020-06-15 Thread i at maskray dot me
Assignee: unassigned at sourceware dot org Reporter: i at maskray dot me Target Milestone: --- ld.lld --reproduce=/tmp/rep.tar creates a reproduce tarball including all input files (object files, shared objects, archives, linker scripts, version scripts, dynamic lists). This feature

[Bug binutils/26028] Readelf truncates symbol names - which is both undocumented, and unnecessary

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

[Bug gas/26222] New: Support 64-bit PC relative relocation (R_MIPS_PC64 via R_MIPS_PC32/R_MIPS_64/R_MIPS_NONE)

2020-07-08 Thread i at maskray dot me
: UNCONFIRMED Severity: normal Priority: P2 Component: gas Assignee: unassigned at sourceware dot org Reporter: i at maskray dot me Target Milestone: --- % cat a.s .globl foo foo: .data .quad foo-. % mips64el-linux-gnuabi64-as a.s -o a.o a.s: Assembler

[Bug ld/26265] New: Spurious 'gc-sections requires either an entry or an undefined symbol' when --init or --fini is specified

2020-07-19 Thread i at maskray dot me
Status: UNCONFIRMED Severity: normal Priority: P2 Component: ld Assignee: unassigned at sourceware dot org Reporter: i at maskray dot me Target Milestone: --- link_info.init_function & link_info.fini_function are GC roots.

  1   2   >