[Bug ld/30844] ld riscv: --emit-relocs does not retain the original relocation type

2023-09-12 Thread i at maskray dot me
https://sourceware.org/bugzilla/show_bug.cgi?id=30844 Fangrui Song changed: What|Removed |Added CC||jnoorman at igalia dot com -- You are

[Bug ld/30844] ld riscv: --emit-relocs does not retain the original relocation type

2023-09-12 Thread i at maskray dot me
https://sourceware.org/bugzilla/show_bug.cgi?id=30844 --- Comment #2 from Fangrui Song --- (In reply to Palmer Dabbelt from comment #1) > Nelson and I are just chatting about this. It's not intentional, but we > also don't quite know what the right answer is here: there's some relocs we > can to

[Bug ld/30865] New: ld: =fillexp different behaviors for hexidecimal literal

2023-09-17 Thread i at maskray dot me
Priority: P2 Component: ld Assignee: unassigned at sourceware dot org Reporter: i at maskray dot me Target Milestone: --- https://sourceware.org/binutils/docs/ld/Output-Section-Fill.html https://sourceware.org/git/?p=binutils-gdb.git;a=commit;h

[Bug ld/30844] ld riscv: --emit-relocs does not retain the original relocation type

2023-09-19 Thread i at maskray dot me
ed conversion can all be described by existing relocation types, which is nice. However, I do not know whether the property will hold for all current and future RISC-V relaxation schemes. When investigating relocation overflow pressure for x86-64 small code model, I have found that preserving the origina

[Bug ld/30907] ELF segment add extra 2 LOAD segments in aarch64, making binary bigger 128KiB than before

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

[Bug binutils/31000] New: objcopy: add support for changing ELF symbol visibility

2023-10-25 Thread i at maskray dot me
Priority: P2 Component: binutils Assignee: unassigned at sourceware dot org Reporter: i at maskray dot me Target Milestone: --- Recently I have been dealing with a benign multiple definition related to compiler-rt/lib/builtins and rust-lang/compiler-builtins. I need

[Bug ld/30865] ld: =fillexp different behaviors for hexidecimal literal

2023-11-05 Thread i at maskray dot me
https://sourceware.org/bugzilla/show_bug.cgi?id=30865 --- Comment #5 from Fangrui Song --- (In reply to Nick Clifton from comment #4) > Created attachment 15115 [details] > Proposed patch Sorry for the late reply but the documentation and test change looks great! There is a minor typo below >

[Bug binutils/31077] New: objcopy --enable-deterministic-archives has non-deterministic output

2023-11-19 Thread yannik at sembritzki dot me
: normal Priority: P2 Component: binutils Assignee: unassigned at sourceware dot org Reporter: yannik at sembritzki dot me Target Milestone: --- I am building a unified kernel image using objcopy. As this file is part of the PCR event log which is used for

[Bug binutils/31077] objcopy --enable-deterministic-archives has non-deterministic output

2023-11-20 Thread yannik at sembritzki dot me
https://sourceware.org/bugzilla/show_bug.cgi?id=31077 --- Comment #1 from Yannik Sembritzki --- This is most likely caused by some timestamp, as using /usr/bin/faketime '2020-01-01' objcopy results in a deterministic build. -- You are receiving this mail because: You are on the CC list for t

[Bug binutils/31077] objcopy has non-deterministic output

2023-11-20 Thread yannik at sembritzki dot me
https://sourceware.org/bugzilla/show_bug.cgi?id=31077 Yannik Sembritzki changed: What|Removed |Added Summary|objcopy |objcopy has |--

[Bug binutils/31077] objcopy has non-deterministic output

2023-11-20 Thread yannik at sembritzki dot me
https://sourceware.org/bugzilla/show_bug.cgi?id=31077 --- Comment #3 from Yannik Sembritzki --- Reading `man ar`, I now finally understand what `archive` means in this context. I didn't quite get that before, and thought it described the "archive" of sections contained within the object file. Oop

[Bug binutils/31077] objcopy has non-deterministic output

2023-11-20 Thread yannik at sembritzki dot me
https://sourceware.org/bugzilla/show_bug.cgi?id=31077 Yannik Sembritzki changed: What|Removed |Added Resolution|--- |WORKSFORME Status|UNC

[Bug gas/27215] as: Error: non-constant .uleb128 is not supported on riscv64

2023-11-30 Thread i at maskray dot me
||i at maskray dot me Target Milestone|--- |2.41 Status|UNCONFIRMED |RESOLVED --- Comment #8 from Fangrui Song --- Implemented by https://sourceware.org/git/?p=binutils-gdb.git;a=commit;h

[Bug ld/31158] New: ld: Should --gc-sections respect RHS of a symbol assignment?

2023-12-12 Thread i at maskray dot me
Priority: P2 Component: ld Assignee: unassigned at sourceware dot org Reporter: i at maskray dot me Target Milestone: --- cat > a.s < a.t echo 'PROVIDE(x = bar);' > b.t # not used, but worth testing as a.s -o a.o ld.lld --gc-sections a.o

[Bug ld/31158] ld: Should --gc-sections respect RHS of a symbol assignment?

2023-12-14 Thread i at maskray dot me
https://sourceware.org/bugzilla/show_bug.cgi?id=31158 --- Comment #2 from Fangrui Song --- Interesting. BFD's behavior depends on whether the assigned symbol is referenced. Let's enhance the test. cat > a.s < a.t as a.s -o a.o ld.lld --gc-sections a.o a.t -o a.lld ld.bfd --gc-sections a.o a.t -o

[Bug binutils/31250] New: Stripping Rust static libraries fails because of overly zealous illegal path check

2024-01-16 Thread amy at amyspark dot me
Severity: normal Priority: P2 Component: binutils Assignee: unassigned at sourceware dot org Reporter: amy at amyspark dot me Target Milestone: --- Created attachment 15307 --> https://sourceware.org/bugzilla/attachment.cgi?id=15307&action=edit

[Bug binutils/31250] Stripping Rust static libraries fails because of overly zealous illegal path check

2024-01-16 Thread amy at amyspark dot me
https://sourceware.org/bugzilla/show_bug.cgi?id=31250 --- Comment #1 from Amyspark --- 7z compressed file of gstrswebrtc.lib: https://s3.amyspark.me/temp/gstrswebrtc.7z SHA256: de8d45f9a67b500c9f237375efca3593c2c301a7266b1ffd21b523dc35fc4b88 -- You are receiving this mail because: You are on t

[Bug binutils/31292] New: objcopy: add --prefix-symbols-remove

2024-01-25 Thread i at maskray dot me
: binutils Assignee: unassigned at sourceware dot org Reporter: i at maskray dot me Target Milestone: --- objcopy supports --prefix-symbols to prefix all symbols. Perhaps --prefix-symbols-remove= can be added to remove the prefix. For example, cat > a.s <https://github.co

[Bug binutils/31250] Stripping Rust static libraries fails because of overly zealous illegal path check

2024-01-25 Thread amy at amyspark dot me
https://sourceware.org/bugzilla/show_bug.cgi?id=31250 --- Comment #4 from Amyspark --- Applied the patch on top of mingw-w64-binutils (commit c2aee7d89488d9402315d59d25852dff258c9eba), and can confirm it works as expected. Only nit I could propose is to keep track of those files that have been b

[Bug binutils/31250] Stripping Rust static libraries fails because of overly zealous illegal path check

2024-01-25 Thread amy at amyspark dot me
https://sourceware.org/bugzilla/show_bug.cgi?id=31250 --- Comment #5 from Amyspark --- > Is the library really valid if it contains absolute pathnames ? Yes, all that MSVC cares about is a) the symbol b) the path inside the .lib pointing to an existing object. I was able to extract all of them

[Bug binutils/31250] Stripping Rust static libraries fails because of overly zealous illegal path check

2024-01-26 Thread amy at amyspark dot me
https://sourceware.org/bugzilla/show_bug.cgi?id=31250 --- Comment #8 from Amyspark --- (In reply to Nick Clifton from comment #6) > > Actually that is a very interesting point. Does MSVC require that the path > inside the lib point to an object that already exists or one that could > exist, sho

[Bug binutils/31000] objcopy: add support for changing ELF symbol visibility

2024-02-08 Thread i at maskray dot me
https://sourceware.org/bugzilla/show_bug.cgi?id=31000 --- Comment #1 from Fangrui Song --- On the llvm-objcopy side, someone proposes --set-symbol-visibility: https://github.com/llvm/llvm-project/pull/80872 -- You are receiving this mail because: You are on the CC list for the bug.

[Bug gas/30788] gas aarch64: GOT relocations referencing a local symbol should not be changed to reference STT_SECTION

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

[Bug binutils/31000] objcopy: add support for changing ELF symbol visibility

2024-02-21 Thread i at maskray dot me
https://sourceware.org/bugzilla/show_bug.cgi?id=31000 --- Comment #2 from Fangrui Song --- (In reply to Fangrui Song from comment #1) > On the llvm-objcopy side, someone proposes --set-symbol-visibility: > https://github.com/llvm/llvm-project/pull/80872 The proposal looks like: .. option:: --se

[Bug ld/31407] New: ld arm: fdpic link may have null pointer dereference in allocate_dynrelocs_for_symbol

2024-02-23 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: --- Noticed while investigating the behavior of .rofixup % cat a.s .globl foo foo: bx lr .data .long foo % ./bin

[Bug ld/31407] ld arm: fdpic link may have null pointer dereference in allocate_dynrelocs_for_symbol

2024-02-23 Thread i at maskray dot me
https://sourceware.org/bugzilla/show_bug.cgi?id=31407 Fangrui Song changed: What|Removed |Added Target||arm*-*-uclinuxfdpiceabi

[Bug ld/31408] ld arm: fdpic link segfaults on R_ARM_GOTOFFFUNCDESC referencing a hidden symbol

2024-02-23 Thread i at maskray dot me
https://sourceware.org/bugzilla/show_bug.cgi?id=31408 Fangrui Song changed: What|Removed |Added CC||clyon at gcc dot gnu.org T

[Bug ld/31408] New: ld arm: fdpic link segfaults on R_ARM_GOTOFFFUNCDESC referencing a hidden symbol

2024-02-23 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 __attribute__((visibility("hidden"))) void fun_hidden(); void *fun_hidden_addr() { return

[Bug ld/31409] New: ld arm: global/weak non-hidden symbols referenced by R_ARM_FUNCDESC are unnecessarily exported

2024-02-23 Thread i at maskray dot me
: NEW Severity: normal Priority: P2 Component: ld Assignee: unassigned at sourceware dot org Reporter: i at maskray dot me Target Milestone: --- % cat a.s .globl _start, f0, f1 .weak f2 .protected f1 _start: f0: f1: f2: fl: bx lr .data .long f0

[Bug ld/31409] ld arm: global/weak non-hidden symbols referenced by R_ARM_FUNCDESC are unnecessarily exported

2024-02-23 Thread i at maskray dot me
https://sourceware.org/bugzilla/show_bug.cgi?id=31409 Fangrui Song changed: What|Removed |Added CC||clyon at gcc dot gnu.org -- You are r

[Bug ld/31409] ld arm: global/weak non-hidden symbols referenced by R_ARM_FUNCDESC are unnecessarily exported

2024-02-23 Thread i at maskray dot me
https://sourceware.org/bugzilla/show_bug.cgi?id=31409 --- Comment #1 from Fangrui Song --- bfd/elf32-arm.c:16521 if (eh->fdpic_cnts.funcdesc_cnt > 0) { if (htab->root.dynamic_sections_created && h->dynindx == -1 && !h->forced_local) if (! bfd_elf_link_record_dynamic

[Bug ld/27452] ld: Support compressing arbitrary sections (generalized --compress-debug-sections=)

2024-03-11 Thread i at maskray dot me
https://sourceware.org/bugzilla/show_bug.cgi?id=27452 --- Comment #2 from Fangrui Song --- I find it very difficult to handle SHF_ALLOC sections due to data commands, range extension thunks, and other features requiring fixed-point iteration. Compressing non-SHF_ALLOC sections alone may yield a

[Bug binutils/31475] New: binutils: Support RELLEB relocation format

2024-03-11 Thread i at maskray dot me
: binutils Assignee: unassigned at sourceware dot org Reporter: i at maskray dot me Target Milestone: --- The relocation formats REL and RELA for ELF are inefficient. In a release build of Clang for x86-64, .rela.* sections consume a significant portion (approximately 20.9%) of

[Bug binutils/31475] binutils: Support CREL relocation format

2024-03-22 Thread i at maskray dot me
https://sourceware.org/bugzilla/show_bug.cgi?id=31475 Fangrui Song changed: What|Removed |Added Summary|binutils: Support RELLEB|binutils: Support CREL

[Bug binutils/31475] binutils: Support CREL relocation format

2024-03-22 Thread i at maskray dot me
https://sourceware.org/bugzilla/show_bug.cgi?id=31475 --- Comment #1 from Fangrui Song --- The format was tentatively named RELLEB. As I refine the original pure LEB-based format, “RELLEB” might not be the most fitting name. I have switched to SHT_CREL/DT_CREL/.crel and updated https://maskray.m

[Bug gas/31567] New: gas/ld: Implicit addends for non-code sections

2024-03-28 Thread i at maskray dot me
Component: gas Assignee: unassigned at sourceware dot org Reporter: i at maskray dot me Target Milestone: --- ELF defines two relocation formats, REL and RELA. REL uses implicit addends, saving space compared to RELA's explicit addend field. However, REL is often inadequat

[Bug ld/27452] ld: Support compressing arbitrary sections (generalized --compress-debug-sections=)

2024-04-30 Thread i at maskray dot me
https://sourceware.org/bugzilla/show_bug.cgi?id=27452 --- Comment #3 from Fangrui Song --- The actual form I plan to use in lld is: --compress-sections ={none,zlib,zstd}[:level] zstd excels at scaling from low-ratio-very-fast to high-ratio-pretty-slow. Some users prioritize speed and prefer dis

[Bug ld/31688] New: ld: Add SECTION_CLASS to allow separate section matching and referring

2024-04-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: --- An input section description file_pattern(section_pattern) couples two operations: * "defining": match a subset of sec

[Bug ld/31688] ld: Add CLASS to allow separate section matching and referring

2024-04-30 Thread i at maskray dot me
https://sourceware.org/bugzilla/show_bug.cgi?id=31688 Fangrui Song changed: What|Removed |Added Summary|ld: Add SECTION_CLASS to|ld: Add CLASS to allow

[Bug ld/31688] ld: Add CLASS to allow separate section matching and referring

2024-04-30 Thread i at maskray dot me
https://sourceware.org/bugzilla/show_bug.cgi?id=31688 --- Comment #1 from Fangrui Song --- We can shorten SECTION_CLASS to CLASS as suggested by https://inbox.sourceware.org/binutils/CAEdiOyfVYNt8Sq+GGixNek-XMPZaOccx+YSd7QO7eeZy=en...@mail.gmail.com/ -- You are receiving this mail because: You

[Bug gas/31752] New: gas: Support \+ in .rept/.irp/.irpc directives

2024-05-17 Thread i at maskray dot me
Component: gas Assignee: unassigned at sourceware dot org Reporter: i at maskray dot me Target Milestone: --- (https://sourceware.org/pipermail/binutils/2024-May/134009.html RFC: Maintaining a per-macro invocation count) gas recently introduced \+ for per-macro invocation counts

[Bug gas/31752] gas: Support \+ in .rept/.irp/.irpc directives

2024-05-17 Thread i at maskray dot me
https://sourceware.org/bugzilla/show_bug.cgi?id=31752 Fangrui Song changed: What|Removed |Added CC||jbeulich at suse dot com -- You are r

[Bug gas/31752] gas: Support \+ in .rept/.irp/.irpc directives

2024-05-17 Thread i at maskray dot me
https://sourceware.org/bugzilla/show_bug.cgi?id=31752 --- Comment #1 from Fangrui Song --- In the absence of the feature, there are a few ways, but none achieves great efficiency or convenience. For example, we can define a macro that expands to a sequence of strings: 0, (0+1), ((0+1)+1), (((0+1

[Bug ld/31795] ld.bfd makes ELFs of type ET_EXEC for static PIEs when load address is non-0

2024-05-26 Thread i at maskray dot me
||i at maskray dot me Resolution|FIXED |--- --- Comment #37 from Fangrui Song --- I agree with mintsuki . The "-pie -Ttext-segment=non-zero => ET_EXEC" hack should not be needed. >From https://sourceware.org/pipermail/binutils/2013

[Bug ld/31795] ld.bfd makes ELFs of type ET_EXEC for static PIEs when load address is non-0

2024-05-28 Thread i at maskray dot me
https://sourceware.org/bugzilla/show_bug.cgi?id=31795 --- Comment #65 from Fangrui Song --- > > Changing ET_DYN to ET_EXEC fulfills the address requirement but disables > > ASLR. > > Is it intentional? > > That's my understanding of reading the -Ttext-segment documentation. The > question is w

[Bug ld/20520] ld terminated with signal 11 [Segmentation fault]

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

[Bug ld/28812] ld: Make --compress-debug-sections=zlib parallel

2024-06-11 Thread i at maskray dot me
https://sourceware.org/bugzilla/show_bug.cgi?id=28812 --- Comment #2 from Fangrui Song --- This is a feature request. Compressing debug sections is slow. Parallelism, even with zstd, is pretty important. -- You are receiving this mail because: You are on the CC list for the bug.

[Bug binutils/31884] New: Compressed .strtab and .symtab

2024-06-11 Thread i at maskray dot me
Assignee: unassigned at sourceware dot org Reporter: i at maskray dot me Target Milestone: --- In ELF executables and DSOs, .symtab and .strtab sections can consume a significant portion of the file size (10+% or even 20+%). In many scenarios, we cannot remove them due to

[Bug ld/31904] New: libdep.so plugin does not register search path in bfd linker

2024-06-18 Thread me at harmenstoppels dot nl
Priority: P2 Component: ld Assignee: unassigned at sourceware dot org Reporter: me at harmenstoppels dot nl Target Milestone: --- I've created two static libraries `f/libf.a` and `g/libg.a`. The first registers a dependency on the second: `-L/path/to/

[Bug ld/31906] New: libdep.so plugin escaping with `\` has bugs, can segfault

2024-06-18 Thread me at harmenstoppels dot nl
Priority: P2 Component: ld Assignee: unassigned at sourceware dot org Reporter: me at harmenstoppels dot nl Target Milestone: --- The `libdep.so` plugin allows putting dependency metadata as further command line arguments `-L/foo -lbar` for the linker in the

[Bug ld/31904] libdep.so plugin registers search path after default paths in bfd linker

2024-06-20 Thread me at harmenstoppels dot nl
https://sourceware.org/bugzilla/show_bug.cgi?id=31904 Harmen Stoppels changed: What|Removed |Added Summary|libdep.so plugin does not |libdep.so plugin registers

[Bug ld/31906] libdep.so plugin escaping with `\` has bugs, can segfault

2024-06-21 Thread me at harmenstoppels dot nl
https://sourceware.org/bugzilla/show_bug.cgi?id=31906 --- Comment #3 from Harmen Stoppels --- Hi Nick, you're right. But there are larger issues, such as the fact that `\` isn't escaping anything, it's a "skipped character". I submitted a patch that addresses the issues reported here as well as

[Bug ld/31904] libdep.so plugin registers search path after default paths in bfd linker

2024-06-21 Thread me at harmenstoppels dot nl
https://sourceware.org/bugzilla/show_bug.cgi?id=31904 --- Comment #2 from Harmen Stoppels --- Hi Nick, > The problem is that there is a libg.a in the standard library search paths > and this is being picked up instead of your local libg.a. I realized that, changed the title of the bug report,

[Bug ld/31906] libdep.so plugin escaping with `\` has bugs, can segfault

2024-06-25 Thread me at harmenstoppels dot nl
https://sourceware.org/bugzilla/show_bug.cgi?id=31906 --- Comment #6 from Harmen Stoppels --- Thanks Nick, looks good to me. Harmen -- You are receiving this mail because: You are on the CC list for the bug.

[Bug ld/31904] libdep.so plugin registers search path after default paths in bfd linker

2024-06-25 Thread me at harmenstoppels dot nl
https://sourceware.org/bugzilla/show_bug.cgi?id=31904 --- Comment #4 from Harmen Stoppels --- > fixing the bfd linker's not-having-local-search-paths issue, which I think > might be hard to do Technically it's not very hard: at least in ld.bfd search paths are a linked list, so it forms a stack

[Bug ld/31688] ld: Add CLASS to allow separate section matching and referring

2024-06-25 Thread i at maskray dot me
https://sourceware.org/bugzilla/show_bug.cgi?id=31688 --- Comment #2 from Fangrui Song --- lld/ELF plans to add CLASS: https://github.com/llvm/llvm-project/pull/95323 -- You are receiving this mail because: You are on the CC list for the bug.

[Bug ld/31904] libdep.so plugin registers search path after default paths in bfd linker

2024-06-26 Thread me at harmenstoppels dot nl
https://sourceware.org/bugzilla/show_bug.cgi?id=31904 --- Comment #8 from Harmen Stoppels --- Hi Nick, I appreciate the patch. Would an additional `ld_plugin_remove_extra_library_path(const char *path)` be possible so that > This does however present a problem if multiple archives with > @samp

[Bug binutils/31924] aarch64 kernels built with binutils 2.42.50.20240618 and later fail to boot

2024-06-27 Thread tj.iam.tj at proton dot me
https://sourceware.org/bugzilla/show_bug.cgi?id=31924 Tj changed: What|Removed |Added CC||tj.iam.tj at proton dot me --- Comment #8 from

[Bug ld/31904] libdep.so plugin registers search path after default paths in bfd linker

2024-06-28 Thread me at harmenstoppels dot nl
https://sourceware.org/bugzilla/show_bug.cgi?id=31904 --- Comment #10 from Harmen Stoppels --- Ah OK, I thought add_input_library() was immediate. Thanks for the patch! Sounds like this is easier to implement correctly and more convenient to use as a builtin feature. I could bring that up in a

[Bug binutils/31924] aarch64 kernels built with binutils 2.42.50.20240618 and later fail to boot

2024-06-28 Thread tj.iam.tj at proton dot me
https://sourceware.org/bugzilla/show_bug.cgi?id=31924 --- Comment #10 from Tj --- On Friday, 28 June 2024 at 13:52, nsz at gcc dot gnu.org wrote: > > so either linux is wrong for passing > > --no-apply-dynamic-relocs -z pack-relative-relocs > > together or ld should ignore --no-apply-dynamic

[Bug gas/31955] New: gas: Extend .loc directive to emit a label

2024-07-04 Thread i at maskray dot me
: gas Assignee: unassigned at sourceware dot org Reporter: i at maskray dot me Target Milestone: --- I have noticed that Meta Platforms folks have a proposal to extend the .loc directive https://discourse.llvm.org/t/rfc-extending-llvm-mc-loc-directive-with-labeling-support

[Bug gas/31955] gas: Extend .loc directive to emit a label

2024-07-08 Thread i at maskray dot me
https://sourceware.org/bugzilla/show_bug.cgi?id=31955 --- Comment #1 from Fangrui Song --- Perhaps call this .loc_label , since .cfi_label (2015) is available. -- You are receiving this mail because: You are on the CC list for the bug.

[Bug binutils/31924] aarch64 kernels built with binutils 2.42.50.20240618 and later fail to boot

2024-07-14 Thread tj.iam.tj at proton dot me
https://sourceware.org/bugzilla/show_bug.cgi?id=31924 --- Comment #14 from Tj --- I see a patch was published in the mailing list on July 2nd but so far it has not been committed - is there something holding it up? https://sourceware.org/pipermail/binutils/2024-July/135334.html -- You are rece

[Bug gas/31955] gas: Extend .loc directive to emit a label

2024-07-19 Thread i at maskray dot me
https://sourceware.org/bugzilla/show_bug.cgi?id=31955 Fangrui Song changed: What|Removed |Added CC||jbeulich at suse dot com -- You are r

[Bug gas/32073] [2.44 Regression] gas failed to build x86-64 Linux kernel

2024-08-13 Thread i at maskray dot me
https://sourceware.org/bugzilla/show_bug.cgi?id=32073 Fangrui Song changed: What|Removed |Added CC||i at maskray dot me --- Comment #23

[Bug gas/32073] [2.44 Regression] gas failed to build x86-64 Linux kernel

2024-08-13 Thread i at maskray dot me
https://sourceware.org/bugzilla/show_bug.cgi?id=32073 --- Comment #24 from Fangrui Song --- (In reply to H.J. Lu from comment #6) > It also breaks GCC builds for ARM, AVR, PRU and others. Do you have links to the potentially brittle assembly? In the gcc repo, I checked a few `rg '\.macro' -g '*

[Bug gas/32082] New: gas arm aarch64: missing mapping symbols $d in the absence of alignment directives

2024-08-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: --- Data sections without alignment directives (excluding BSS) might lack '$d' symbols, and mixing data and tex

[Bug gas/32082] gas arm aarch64: missing mapping symbols $d in the absence of alignment directives

2024-08-13 Thread i at maskray dot me
https://sourceware.org/bugzilla/show_bug.cgi?id=32082 Fangrui Song changed: What|Removed |Added Target||arm*-*-* aarch64-*-* -- You are recei

[Bug gas/32073] [2.44 Regression] gas failed to build x86-64 Linux kernel

2024-08-14 Thread i at maskray dot me
https://sourceware.org/bugzilla/show_bug.cgi?id=32073 --- Comment #26 from Fangrui Song --- (In reply to Andreas Schwab from comment #25) > https://inbox.sourceware.org/binutils/87a5hjmq7r@linux-m68k.org/ Thanks. https://inbox.sourceware.org/binutils/73460160-a0bf-48d9-84b0-c531317d0...@suse

[Bug ld/32153] New: [2.43 regression]: ld: Failed to link llvm bitcode module: Expected at most one ThinLTO module per bitcode file

2024-09-08 Thread a.horodniceanu at proton dot me
Version: 2.43.1 Status: UNCONFIRMED Severity: normal Priority: P2 Component: ld Assignee: unassigned at sourceware dot org Reporter: a.horodniceanu at proton dot me Target Milestone: --- Since commit a6f8fe0a9e9cbe871652e46ba7c22d5e9fb86208

[Bug ld/32153] [2.43 regression]: ld: Failed to link llvm bitcode module: Expected at most one ThinLTO module per bitcode file

2024-09-08 Thread a.horodniceanu at proton dot me
https://sourceware.org/bugzilla/show_bug.cgi?id=32153 Andrei Horodniceanu changed: What|Removed |Added CC||hjl.tools at gmail dot com --

[Bug gold/23856] New: Executables linked with gold against musl segfault at startup

2018-11-04 Thread mail at nh2 dot me
Priority: P2 Component: gold Assignee: ccoutant at gmail dot com Reporter: mail at nh2 dot me CC: ian at airs dot com Target Milestone: --- Hey, we're trying to link (dynamically) some executables against musl with gold. When we link wit

[Bug gold/23856] Executables linked with gold against musl segfault at startup

2018-11-04 Thread mail at nh2 dot me
https://sourceware.org/bugzilla/show_bug.cgi?id=23856 --- Comment #1 from mail at nh2 dot me --- This was found as part of https://github.com/NixOS/nixpkgs/issues/49071 -- You are receiving this mail because: You are on the CC list for the bug

[Bug gold/23856] Executables linked with gold against musl segfault at startup

2018-11-04 Thread mail at nh2 dot me
https://sourceware.org/bugzilla/show_bug.cgi?id=23856 mail at nh2 dot me changed: What|Removed |Added CC||mail at nh2 dot me -- You are

[Bug gold/23880] Gold can't handle .gnu.build.attributes section with relocations

2019-04-11 Thread howaboutsynergy at pm dot me
https://sourceware.org/bugzilla/show_bug.cgi?id=23880 howaboutsynergy at pm dot me changed: What|Removed |Added CC||howaboutsynergy at pm

[Bug ld/16428] autoconf tests don't terminate on ix86-linux-gnu with -static -fPIE -pie on glibc-2.18 based systems

2019-07-03 Thread howaboutsynergy at pm dot me
https://sourceware.org/bugzilla/show_bug.cgi?id=16428 howaboutsynergy changed: What|Removed |Added CC||howaboutsynergy at pm dot me

[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 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/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 se

[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 displays

[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 binutils/24942] objcopy: Add option for setting section alignment

2019-10-01 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 tha

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

2019-11-01 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/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/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/25236] New: common symbol: don't consider definitions in shared objects

2019-11-30 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: --- 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/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_C

[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 sh

[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 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 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 gas/25380] New: Support section linkage 'unique' (multiple sections with the same name)

2020-01-13 Thread i at maskray dot me
NCONFIRMED 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

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

2020-01-13 Thread i at maskray dot me
iority: P2 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 #

[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/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/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 because:

<    1   2   3   4   5   6   >