[Bug ld/31619] New: sh: fdpic linker breaks function pointer equality

2024-04-08 Thread bugdal at aerifal dot cx
Component: ld Assignee: unassigned at sourceware dot org Reporter: bugdal at aerifal dot cx Target Milestone: --- Created attachment 15453 --> https://sourceware.org/bugzilla/attachment.cgi?id=15453&action=edit proposed fix The sh linker's handling

[Bug ld/31171] New: ld generates gratuitous PLT entries on ARM

2023-12-15 Thread bugdal at aerifal dot cx
Component: ld Assignee: unassigned at sourceware dot org Reporter: bugdal at aerifal dot cx Target Milestone: --- This looks like it may be the same as https://sourceware.org/bugzilla/show_bug.cgi?id=22374 for other archs. I was testing with the program: #include static void

[Bug gold/27625] New: powerpc64: gold erroneously rejects linking code that calls __tls_get_addr

2021-03-22 Thread bugdal at aerifal dot cx
Severity: normal Priority: P2 Component: gold Assignee: ccoutant at gmail dot com Reporter: bugdal at aerifal dot cx CC: ian at airs dot com Target Milestone: --- When targeting powerpc64, attempting to link a source file that calls

[Bug gold/26541] gold makes incorrect usage of fallocate in fallback path

2021-02-19 Thread bugdal at aerifal dot cx
https://sourceware.org/bugzilla/show_bug.cgi?id=26541 --- Comment #5 from Rich Felker --- Ah no, at least according to your patch the original gold bug seems to be there still too. -- You are receiving this mail because: You are on the CC list for the bug.

[Bug gold/26541] gold makes incorrect usage of fallocate in fallback path

2021-02-19 Thread bugdal at aerifal dot cx
https://sourceware.org/bugzilla/show_bug.cgi?id=26541 --- Comment #4 from Rich Felker --- Oh, was this already fixed and the new comment just a matter of lustre erroneously returning a value that's not a valid error code to userspace? -- You are receiving this mail because: You are on the CC li

[Bug gold/26541] gold makes incorrect usage of fallocate in fallback path

2021-02-19 Thread bugdal at aerifal dot cx
https://sourceware.org/bugzilla/show_bug.cgi?id=26541 --- Comment #2 from Rich Felker --- Why is this still open? It's trivial to fix. -- You are receiving this mail because: You are on the CC list for the bug.

[Bug binutils/26945] Unsafe chown+chmod in smart_rename, possibly elsewhere

2020-12-01 Thread bugdal at aerifal dot cx
https://sourceware.org/bugzilla/show_bug.cgi?id=26945 --- Comment #13 from Rich Felker --- This patch keeps expanding way beyond the scope of what I can commit to review, and I don't think it's nearing something that fixes the problem. It's not clear to me if bfd_stat uses fstat on the open file

[Bug binutils/26945] Unsafe chown+chmod in smart_rename, possibly elsewhere

2020-11-30 Thread bugdal at aerifal dot cx
https://sourceware.org/bugzilla/show_bug.cgi?id=26945 --- Comment #11 from Rich Felker --- Yes, see my footnote in comment 4. That works just as well. -- You are receiving this mail because: You are on the CC list for the bug.

[Bug binutils/26945] Unsafe chown+chmod in smart_rename, possibly elsewhere

2020-11-30 Thread bugdal at aerifal dot cx
https://sourceware.org/bugzilla/show_bug.cgi?id=26945 --- Comment #9 from Rich Felker --- > > 1. make_tempname with fd_return==NULL is *always* a bug, > Well, I would argue that it is only a bug if the temporary file is going to be manipulated by other system functions. Are you going to create

[Bug binutils/26945] Unsafe chown+chmod in smart_rename, possibly elsewhere

2020-11-27 Thread bugdal at aerifal dot cx
https://sourceware.org/bugzilla/show_bug.cgi?id=26945 --- Comment #4 from Rich Felker --- That's a lot to review without being familiar with the code, but a couple things I can tell you right off: 1. make_tempname with fd_return==NULL is *always* a bug, and defeats the whole purpose of mkstemp.

[Bug binutils/26945] Unsafe chown+chmod in smart_rename, possibly elsewhere

2020-11-26 Thread bugdal at aerifal dot cx
https://sourceware.org/bugzilla/show_bug.cgi?id=26945 --- Comment #2 from Rich Felker --- It's not that smart_rename should open it and use fchown+fchmod on the result; indeed as you figured that has the same race. The problem is that you threw away the only safe way to perform modifications on t

[Bug binutils/26945] Unsafe chown+chmod in smart_rename, possibly elsewhere

2020-11-25 Thread bugdal at aerifal dot cx
https://sourceware.org/bugzilla/show_bug.cgi?id=26945 Rich Felker changed: What|Removed |Added CC||siddhesh at sourceware dot org -- You

[Bug binutils/26945] New: Unsafe chown+chmod in smart_rename, possibly elsewhere

2020-11-25 Thread bugdal at aerifal dot cx
Component: binutils Assignee: unassigned at sourceware dot org Reporter: bugdal at aerifal dot cx Target Milestone: --- At least objcopy and perhaps other utilities generate a temp file safely with mkstemp then rename it to atomically replace the original, but the

[Bug ld/25882] .gnu.attributes are not checked for shared libraries

2020-10-30 Thread bugdal at aerifal dot cx
https://sourceware.org/bugzilla/show_bug.cgi?id=25882 --- Comment #9 from Rich Felker --- OK, I should have read more before commenting. My comments in particular pertain specifically to powerpc64 although other archs might be affected too. I see that the error was downgraded to a warning since t

[Bug ld/25882] .gnu.attributes are not checked for shared libraries

2020-10-30 Thread bugdal at aerifal dot cx
https://sourceware.org/bugzilla/show_bug.cgi?id=25882 --- Comment #8 from Rich Felker --- Also note that while, for musl targets, this issue could also be fixed just by getting gcc not to build its ld128 functions in libgcc_s, there are also people using glibc's ld64 ABI, and glibc necessarily ha

[Bug ld/25882] .gnu.attributes are not checked for shared libraries

2020-10-30 Thread bugdal at aerifal dot cx
https://sourceware.org/bugzilla/show_bug.cgi?id=25882 Rich Felker changed: What|Removed |Added CC||bugdal at aerifal dot cx --- Comment

[Bug gold/26541] New: gold makes incorrect usage of fallocate in fallback path

2020-08-26 Thread bugdal at aerifal dot cx
Priority: P2 Component: gold Assignee: ccoutant at gmail dot com Reporter: bugdal at aerifal dot cx CC: ian at airs dot com Target Milestone: --- In gold's output.cc gold_fallocate, after posix_fallocate() fails with a non-fatal erro

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

2019-11-19 Thread bugdal at aerifal dot cx
https://sourceware.org/bugzilla/show_bug.cgi?id=23825 --- Comment #8 from Rich Felker --- To clarify what I mean about ABI and copy relocations, prior to RISC-V doing this, there was no arch where it was unsafe to have extensible (existing part's meaning remains same, new parts added to end) arra

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

2019-11-19 Thread bugdal at aerifal dot cx
https://sourceware.org/bugzilla/show_bug.cgi?id=23825 Rich Felker changed: What|Removed |Added CC||bugdal at aerifal dot cx --- Comment

[Bug gas/25184] New: or1k gas errors on any backwards jump on 32-bit host

2019-11-10 Thread bugdal at aerifal dot cx
Component: gas Assignee: unassigned at sourceware dot org Reporter: bugdal at aerifal dot cx Target Milestone: --- I don't understand the lisp-like language the opcode C files are generated from, so I don't have a root cause for this, but the problem is in op

[Bug gas/25184] or1k gas errors on any backwards jump on 32-bit host

2019-11-10 Thread bugdal at aerifal dot cx
https://sourceware.org/bugzilla/show_bug.cgi?id=25184 Rich Felker changed: What|Removed |Added Target||or1k-*-* -- You are receiving this mai

[Bug ld/25056] ld fails to bind DTPMOD at link time for pie on arm

2019-10-02 Thread bugdal at aerifal dot cx
https://sourceware.org/bugzilla/show_bug.cgi?id=25056 --- Comment #3 from Rich Felker --- It is a correctness issue for static linking, where my intent (as the one who introduced static pie) was that presence of any unresolved relocations except load-address-relative ones is an error. If you thin

[Bug ld/25056] ld fails to bind DTPMOD at link time for pie on arm

2019-10-02 Thread bugdal at aerifal dot cx
https://sourceware.org/bugzilla/show_bug.cgi?id=25056 --- Comment #1 from Rich Felker --- Link for convenience: https://sourceware.org/bugzilla/show_bug.cgi?id=22570 I suspect there may be other targets with exactly the same issue. There should probably be a generic test for all targets that ass

[Bug ld/25056] New: ld fails to bind DTPMOD at link time for pie on arm

2019-10-02 Thread bugdal at aerifal dot cx
Component: ld Assignee: unassigned at sourceware dot org Reporter: bugdal at aerifal dot cx Target Milestone: --- Created attachment 12015 --> https://sourceware.org/bugzilla/attachment.cgi?id=12015&action=edit patch to fix Identical to #22570 for mips. --

[Bug ld/23683] ld --help text misspells -z stack-size=SIZE option

2018-09-19 Thread bugdal at aerifal dot cx
https://sourceware.org/bugzilla/show_bug.cgi?id=23683 --- Comment #2 from Rich Felker --- Thanks. I was still using 2.27 and should have tagged that in the report, and should have checked later history for a fix. -- You are receiving this mail because: You are on the CC list for the bug. __

[Bug ld/23683] New: ld --help text misspells -z stack-size=SIZE option

2018-09-18 Thread bugdal at aerifal dot cx
Component: ld Assignee: unassigned at sourceware dot org Reporter: bugdal at aerifal dot cx Target Milestone: --- In the help text (ld --help), -z stack-size=SIZE is misspelled as -z stacksize=SIZE, which does not work. -- You are receiving this mail because: You are

[Bug ld/23428] ld does not put program headers in a code-only load segment

2018-07-19 Thread bugdal at aerifal dot cx
https://sourceware.org/bugzilla/show_bug.cgi?id=23428 --- Comment #3 from Rich Felker --- I don't object to the patch as-is, but wouldn't it make more sense to make the program headers a first-class section with attribute alloc, so that they're semantically forced to be visible at runtime rather

[Bug ld/23428] ld does not put program headers in a load segment when static linking an executable

2018-07-18 Thread bugdal at aerifal dot cx
https://sourceware.org/bugzilla/show_bug.cgi?id=23428 Rich Felker changed: What|Removed |Added CC||bugdal at aerifal dot cx -- You are

[Bug ld/22263] -fpie -pie generates dynamic relocations in text section

2018-07-03 Thread bugdal at aerifal dot cx
https://sourceware.org/bugzilla/show_bug.cgi?id=22263 --- Comment #17 from Rich Felker --- Yes, see #22570 in the list of duplicates, which includes a proposed patch for MIPS. -- You are receiving this mail because: You are on the CC list for the bug. ___

[Bug ld/22570] ld fails to bind DTPMOD at link time for pie on mips

2018-01-31 Thread bugdal at aerifal dot cx
https://sourceware.org/bugzilla/show_bug.cgi?id=22570 --- Comment #2 from Rich Felker --- Created attachment 10762 --> https://sourceware.org/bugzilla/attachment.cgi?id=10762&action=edit proposed fix -- You are receiving this mail because: You are on the CC list for the bug. _

[Bug ld/22570] ld fails to bind DTPMOD at link time for pie on mips

2018-01-31 Thread bugdal at aerifal dot cx
https://sourceware.org/bugzilla/show_bug.cgi?id=22570 --- Comment #1 from Rich Felker --- The details of my assessment seem to have been written in terms of 2.25; with the changes from commit 0e1862bb40, the problem is now use of bfd_link_pic where bfd_link_dll was presumably intended. I'm attach

[Bug ld/22570] New: ld fails to bind DTPMOD at link time for pie on mips

2017-12-07 Thread bugdal at aerifal dot cx
Component: ld Assignee: unassigned at sourceware dot org Reporter: bugdal at aerifal dot cx Target Milestone: --- When a symbol is defined and referenced in the main program, DTPMOD relocations should be bound at ld time to module 1. This is mandatory for static

[Bug ld/22570] ld fails to bind DTPMOD at link time for pie on mips

2017-12-07 Thread bugdal at aerifal dot cx
https://sourceware.org/bugzilla/show_bug.cgi?id=22570 Rich Felker changed: What|Removed |Added Target||mips*-*-*-* -- You are receiving this

[Bug ld/21086] static linking with --dynamic-list adds dynamic section and interpreter

2017-01-25 Thread bugdal at aerifal dot cx
https://sourceware.org/bugzilla/show_bug.cgi?id=21086 Rich Felker changed: What|Removed |Added CC||bugdal at aerifal dot cx --- Comment

[Bug ld/21017] [microblaze] ld fails with missing _GLOBAL_OFFSET_TABLE_ symbol when all relocs are @GOTOFF

2017-01-02 Thread bugdal at aerifal dot cx
https://sourceware.org/bugzilla/show_bug.cgi?id=21017 --- Comment #1 from Rich Felker --- Created attachment 9735 --> https://sourceware.org/bugzilla/attachment.cgi?id=9735&action=edit patch to fix the bug This seems to fix the issue, but there may be additional reloc types that should be chec

[Bug ld/21017] New: [microblaze] ld fails with missing _GLOBAL_OFFSET_TABLE_ symbol when all relocs are @GOTOFF

2017-01-02 Thread bugdal at aerifal dot cx
Status: UNCONFIRMED Severity: normal Priority: P2 Component: ld Assignee: unassigned at sourceware dot org Reporter: bugdal at aerifal dot cx Target Milestone: --- When linking a program where all GOT-based relocations are GOT-relative

[Bug gold/17699] incorrect R_386_TLS_DTPMOD32 relocation

2016-11-22 Thread bugdal at aerifal dot cx
https://sourceware.org/bugzilla/show_bug.cgi?id=17699 --- Comment #7 from Rich Felker --- Can you cite any documentation that a non-STT_TLS symbol reference is permissible in a DTPMOD relocation? -- You are receiving this mail because: You are on the CC list for the bug. ___

[Bug ld/17739] Assertion fail ../../bfd/elf32-sh.c:4504 on sh4 when compiling Qt5

2016-07-26 Thread bugdal at aerifal dot cx
https://sourceware.org/bugzilla/show_bug.cgi?id=17739 --- Comment #11 from Rich Felker --- Ping? -- You are receiving this mail because: You are on the CC list for the bug. ___ bug-binutils mailing list bug-binutils@gnu.org https://lists.gnu.org/mailm

[Bug ld/20360] DT_TEXTREL appearing in output with no textrels on x86_64

2016-07-12 Thread bugdal at aerifal dot cx
https://sourceware.org/bugzilla/show_bug.cgi?id=20360 --- Comment #6 from Rich Felker --- To add some context, I suggested building without -Bsymbolic* in case the cause was relocations that would be textrels before -Bsymbolic* optimized them out. Looking at the source, particularly calls/jmps to

[Bug ld/20360] DT_TEXTREL appearing in output with no textrels on x86_64

2016-07-12 Thread bugdal at aerifal dot cx
https://sourceware.org/bugzilla/show_bug.cgi?id=20360 --- Comment #3 from Rich Felker --- At this point there's no testcase smaller than the dotnet/coreclr build, but I wanted to go ahead and post the bug here to get discussion moved to the tracker where it's relevant. I believe they have a way t

[Bug ld/20360] New: DT_TEXTREL appearing in output with no textrels on x86_64

2016-07-12 Thread bugdal at aerifal dot cx
Priority: P2 Component: ld Assignee: unassigned at sourceware dot org Reporter: bugdal at aerifal dot cx Target Milestone: --- This is based on a bug report from dotnet CoreCLR: https://github.com/dotnet/coreclr/issues/6211 What seems to be happening is

[Bug ld/17739] Assertion fail ../../bfd/elf32-sh.c:4504 on sh4 when compiling Qt5

2016-06-26 Thread bugdal at aerifal dot cx
https://sourceware.org/bugzilla/show_bug.cgi?id=17739 Rich Felker changed: What|Removed |Added CC||bugdal at aerifal dot cx --- Comment

[Bug ld/19645] New: STT_COMMON symbols treated as non-data by -dynamic-list-data/-Bsymbolic-functions

2016-02-16 Thread bugdal at aerifal dot cx
Severity: normal Priority: P2 Component: ld Assignee: unassigned at sourceware dot org Reporter: bugdal at aerifal dot cx Target Milestone: --- If binutils is built with STT_COMMON support enabled, use of -Bsymbolic-functions for libraries with visible data

[Bug ld/19516] microblaze: invalid symbol indices in GLOB_DAT relocs

2016-02-11 Thread bugdal at aerifal dot cx
https://sourceware.org/bugzilla/show_bug.cgi?id=19516 --- Comment #2 from Rich Felker --- Created attachment 8978 --> https://sourceware.org/bugzilla/attachment.cgi?id=8978&action=edit proposed fix Producing a symbolic GLOB_DAT relocation for a symbol that has been made local/hidden by setting

[Bug ld/19516] microblaze: invalid symbol indices in GLOB_DAT relocs

2016-02-11 Thread bugdal at aerifal dot cx
https://sourceware.org/bugzilla/show_bug.cgi?id=19516 Rich Felker changed: What|Removed |Added Target||microblaze*-*-* -- You are receiving t

[Bug ld/19091] sh: FDPIC linker fails to produce DT_PLTGOT for some files

2016-01-23 Thread bugdal at aerifal dot cx
https://sourceware.org/bugzilla/show_bug.cgi?id=19091 Rich Felker changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug ld/19516] microblaze: invalid symbol indices in GLOB_DAT relocs

2016-01-23 Thread bugdal at aerifal dot cx
https://sourceware.org/bugzilla/show_bug.cgi?id=19516 --- Comment #1 from Rich Felker --- For reference here is the link to the first version of musl affected which can be used to reproduce the bug: http://git.musl-libc.org/cgit/musl/commit/?id=ad1cd43a86645ba2d4f7c8747240452a349d6bc1 -- You a

[Bug ld/19516] New: microblaze: invalid symbol indices in GLOB_DAT relocs

2016-01-23 Thread bugdal at aerifal dot cx
Component: ld Assignee: unassigned at sourceware dot org Reporter: bugdal at aerifal dot cx Target Milestone: --- Current git versions of musl libc (since commit ad1cd43a86) are producing a libc.so that crashes during startup due to a bogus GLOB_DAT relocations with symbol

[Bug ld/19091] sh: FDPIC linker fails to produce DT_PLTGOT for some files

2015-10-10 Thread bugdal at aerifal dot cx
https://sourceware.org/bugzilla/show_bug.cgi?id=19091 --- Comment #4 from Rich Felker --- OK. Should I submit a patch or do you just want to make the one-line change yourself? -- You are receiving this mail because: You are on the CC list for the bug. __

[Bug ld/19091] sh: FDPIC linker fails to produce DT_PLTGOT for some files

2015-10-10 Thread bugdal at aerifal dot cx
https://sourceware.org/bugzilla/show_bug.cgi?id=19091 --- Comment #2 from Rich Felker --- Even with no GOT, not PLT, and no function descriptors, it's possible to have code which accesses local data via @GOTOFF displacements. If DT_PLTGOT is not emitted in the output _DYNAMIC, there is no way for

[Bug ld/19091] sh: FDPIC linker fails to produce DT_PLTGOT for some files

2015-10-09 Thread bugdal at aerifal dot cx
https://sourceware.org/bugzilla/show_bug.cgi?id=19091 Rich Felker changed: What|Removed |Added CC||kkojima at rr dot iij4u.or.jp -- You a

[Bug ld/19091] New: sh: FDPIC linker fails to produce DT_PLTGOT for some files

2015-10-08 Thread bugdal at aerifal dot cx
Priority: P2 Component: ld Assignee: unassigned at sourceware dot org Reporter: bugdal at aerifal dot cx Target Milestone: --- Created attachment 8688 --> https://sourceware.org/bugzilla/attachment.cgi?id=8688&action=edit minimal test case Und

[Bug gas/18561] sh assembler wrongly constant-folds address expressions containing weak symbols

2015-08-24 Thread bugdal at aerifal dot cx
https://sourceware.org/bugzilla/show_bug.cgi?id=18561 --- Comment #15 from Rich Felker --- Well that's not necessarily a show-stopper if there's a way to make it "work" (evaluate at as-time) in .size or other contexts that aren't actually section content and where a relocation cannot be emitted.

[Bug gas/18561] sh assembler wrongly constant-folds address expressions containing weak symbols

2015-08-24 Thread bugdal at aerifal dot cx
https://sourceware.org/bugzilla/show_bug.cgi?id=18561 --- Comment #13 from Rich Felker --- Nick, can you confirm that your latest patch does not break typical use of .size like Alan Modra was concerned it would? -- You are receiving this mail because: You are on the CC list for the bug. __

[Bug gas/18561] sh assembler wrongly constant-folds address expressions containing weak symbols

2015-08-22 Thread bugdal at aerifal dot cx
https://sourceware.org/bugzilla/show_bug.cgi?id=18561 --- Comment #11 from Rich Felker --- I filed the corresponding GCC bug, #66609, at the same time I filed this one. Here is the link for reference: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66609 The bug report also contains a suggested fi

[Bug gas/18561] sh assembler wrongly constant-folds address expressions containing weak symbols

2015-08-21 Thread bugdal at aerifal dot cx
https://sourceware.org/bugzilla/show_bug.cgi?id=18561 --- Comment #9 from Rich Felker --- If this is the intended behavior, it should be documented as such. At the very least it's highly counter-intuitive, and a regression, albeit a very very old one. In any case I'll submit the patch I have for

[Bug gas/18561] sh assembler wrongly constant-folds address expressions containing weak symbols

2015-08-21 Thread bugdal at aerifal dot cx
https://sourceware.org/bugzilla/show_bug.cgi?id=18561 --- Comment #7 from Rich Felker --- I like it, but I think some effort should be put into understanding why the wrong code was there to begin with and what the intent was. Here is the commit that broke it: https://sourceware.org/git/?p=binuti

[Bug gas/18561] sh assembler wrongly constant-folds address expressions containing weak symbols

2015-08-21 Thread bugdal at aerifal dot cx
https://sourceware.org/bugzilla/show_bug.cgi?id=18561 --- Comment #4 from Rich Felker --- Indeed, that fixes it. However I'm skeptical of the way you're making the change: 1. S_FORCE_RELOC already has logic to force relocations for weak symbols when the strict argument is nonzero, so I wonder if

[Bug gas/18561] sh assembler wrongly constant-folds address expressions containing weak symbols

2015-08-17 Thread bugdal at aerifal dot cx
https://sourceware.org/bugzilla/show_bug.cgi?id=18561 --- Comment #2 from Rich Felker --- No. I believe I actually tried something near-identical before reporting this bug, but I just tried your patch to be sure, and there is still no relocation in the output object file. -- You are receiving t

[Bug gas/18561] New: sh assembler wrongly constant-folds address expressions containing weak symbols

2015-06-19 Thread bugdal at aerifal dot cx
Severity: normal Priority: P2 Component: gas Assignee: unassigned at sourceware dot org Reporter: bugdal at aerifal dot cx Target Milestone: --- Minimal test case: .global a .global b .weak a .align 2 a: .long 0 b: .long a-. The output should contain a

[Bug gas/16858] weak external reference has wrong value

2015-06-12 Thread bugdal at aerifal dot cx
||bugdal at aerifal dot cx Resolution|FIXED |--- --- Comment #20 from Rich Felker --- The fix that was applied only fixed PC-relative relocations (direct calls). Global data containing a function pointer to a weak function is still broken exactly the

[Bug gold/17699] incorrect R_386_TLS_DTPMOD32 relocation

2014-12-11 Thread bugdal at aerifal dot cx
https://sourceware.org/bugzilla/show_bug.cgi?id=17699 Rich Felker changed: What|Removed |Added CC||bugdal at aerifal dot cx --- Comment

[Bug ld/17117] [2.23 Regression] assertion fail elf32-i386.c:4016 with GNU2 TLS

2014-07-11 Thread bugdal at aerifal dot cx
https://sourceware.org/bugzilla/show_bug.cgi?id=17117 Rich Felker changed: What|Removed |Added CC||bugdal at aerifal dot cx --- Comment

[Bug binutils/16698] BFD (GNU Binutils) 2.24 assertion fail elf32-arm.c:12387

2014-06-30 Thread bugdal at aerifal dot cx
https://sourceware.org/bugzilla/show_bug.cgi?id=16698 Rich Felker changed: What|Removed |Added CC||bugdal at aerifal dot cx --- Comment

[Bug ld/17057] New: Production of DSOs using TLSDESC is utterly broken on i386

2014-06-14 Thread bugdal at aerifal dot cx
Priority: P2 Component: ld Assignee: unassigned at sourceware dot org Reporter: bugdal at aerifal dot cx Attempting to compile/link the following program: __thread int my_tls = 1; int *my_tls_addr() { return &my_tls; } with the following gcc command line:

[Bug binutils/12549] --as-needed should ignore weak references

2013-02-18 Thread bugdal at aerifal dot cx
http://sourceware.org/bugzilla/show_bug.cgi?id=12549 --- Comment #15 from Rich Felker 2013-02-18 16:22:08 UTC --- It would be really nice if the bug tracker messages for addressing/resolving bugs actually contained an explanation of the resolution rather than cryptic references to implementation

[Bug binutils/12549] --as-needed should ignore weak references

2013-01-14 Thread bugdal at aerifal dot cx
http://sourceware.org/bugzilla/show_bug.cgi?id=12549 --- Comment #11 from Rich Felker 2013-01-14 17:22:10 UTC --- I agree that's possible as a workaround, but it seems to change the ABI for libgcc_s, which is probably not acceptable. And it's an extra layer of hackery needed to achieve the norma

[Bug binutils/12549] --as-needed should ignore weak references

2013-01-14 Thread bugdal at aerifal dot cx
http://sourceware.org/bugzilla/show_bug.cgi?id=12549 --- Comment #9 from Rich Felker 2013-01-14 15:50:47 UTC --- I agree there's room for different opinions here, but I believe --as-needed should not include the library when all it does is resolve weak references. This matches the static-linking

[Bug gas/14798] New: gas mips target generates badly typed symbols

2012-11-01 Thread bugdal at aerifal dot cx
http://sourceware.org/bugzilla/show_bug.cgi?id=14798 Bug #: 14798 Summary: gas mips target generates badly typed symbols Product: binutils Version: unspecified Status: NEW Severity: normal Priority: P2 Component

[Bug ld/13600] protected visibility creates bogus relocation

2012-10-12 Thread bugdal at aerifal dot cx
http://sourceware.org/bugzilla/show_bug.cgi?id=13600 --- Comment #15 from Rich Felker 2012-10-12 19:48:59 UTC --- Ping. Is anybody willing to look at this? This bug has been open 10 months now and fixing it is as simple as removing the offending code that's enforcing policy to protest a

[Bug gas/14640] New: gas generates broken relocations for symbols with weak defs on microblaze

2012-09-27 Thread bugdal at aerifal dot cx
http://sourceware.org/bugzilla/show_bug.cgi?id=14640 Bug #: 14640 Summary: gas generates broken relocations for symbols with weak defs on microblaze Product: binutils Version: unspecified Status: NEW

[Bug ld/14512] New: -z nodelete should be default for shared libraries

2012-08-23 Thread bugdal at aerifal dot cx
http://sourceware.org/bugzilla/show_bug.cgi?id=14512 Bug #: 14512 Summary: -z nodelete should be default for shared libraries Product: binutils Version: unspecified Status: NEW Severity: normal Priority: P2 Comp

[Bug ld/13600] protected visibility creates bogus relocation

2012-05-28 Thread bugdal at aerifal dot cx
http://sourceware.org/bugzilla/show_bug.cgi?id=13600 Rich Felker changed: What|Removed |Added CC||bugdal at aerifal dot cx --- Comment

[Bug ld/14156] New: --sort-section=alignment trashes init/fini sections, and anything similar

2012-05-23 Thread bugdal at aerifal dot cx
http://sourceware.org/bugzilla/show_bug.cgi?id=14156 Bug #: 14156 Summary: --sort-section=alignment trashes init/fini sections, and anything similar Product: binutils Version: unspecified Status: NEW Severity:

[Bug binutils/14037] Bogus global symbol ABS redefinition when linking PIC app to eh_frame-stripped shared library

2012-05-01 Thread bugdal at aerifal dot cx
http://sourceware.org/bugzilla/show_bug.cgi?id=14037 --- Comment #3 from Rich Felker 2012-05-01 18:37:16 UTC --- Another way of looking at the issue is that, if strip is going to break things like this, the default linker scripts should order the sections such that mandatory sections like text/d

[Bug binutils/14037] Bogus global symbol ABS redefinition when linking PIC app to eh_frame-stripped shared library

2012-05-01 Thread bugdal at aerifal dot cx
http://sourceware.org/bugzilla/show_bug.cgi?id=14037 --- Comment #3 from Rich Felker 2012-05-01 18:37:16 UTC --- Another way of looking at the issue is that, if strip is going to break things like this, the default linker scripts should order the sections such that mandatory sections like text/d

[Bug binutils/14037] Bogus global symbol ABS redefinition when linking PIC app to eh_frame-stripped shared library

2012-05-01 Thread bugdal at aerifal dot cx
http://sourceware.org/bugzilla/show_bug.cgi?id=14037 Rich Felker changed: What|Removed |Added Component|ld |binutils --- Comment #2 from Rich Felker

[Bug ld/14037] New: Bogus global symbol ABS redefinition when linking PIC app to eh_frame-stripped shared library

2012-04-30 Thread bugdal at aerifal dot cx
http://sourceware.org/bugzilla/show_bug.cgi?id=14037 Bug #: 14037 Summary: Bogus global symbol ABS redefinition when linking PIC app to eh_frame-stripped shared library Product: binutils Version: unspecified Status: NEW

[Bug binutils/13891] Binutils is impossible to static link due to broken libtool behavior

2012-03-24 Thread bugdal at aerifal dot cx
http://sourceware.org/bugzilla/show_bug.cgi?id=13891 --- Comment #4 from Rich Felker 2012-03-24 21:06:21 UTC --- Mike, a link to the workaround would be really helpful to anyone dealing with this bug or trying to evaluate whether it's worth fixing/working around in binutils. Personally I don't

[Bug binutils/13891] New: Binutils is impossible to static link due to broken libtool behavior

2012-03-21 Thread bugdal at aerifal dot cx
http://sourceware.org/bugzilla/show_bug.cgi?id=13891 Bug #: 13891 Summary: Binutils is impossible to static link due to broken libtool behavior Product: binutils Version: unspecified Status: NEW Severity: criti

[Bug binutils/12549] --as-needed should ignore weak references

2012-03-21 Thread bugdal at aerifal dot cx
http://sourceware.org/bugzilla/show_bug.cgi?id=12549 Rich Felker changed: What|Removed |Added CC||bugdal at aerifal dot cx --- Comment #1