problem with 64 bit binutils (32bit seems ok)

2009-12-09 Thread me
The following two-liner ie # .int gdt gdt: # assembled with "as test.s; objcopy -O binary a.out a.com; hte a.com" gives " 00 00 00 00" on my phenom X3 under both Crunchbang linux 64bit (binutils both downloaded as package and also compiled from gnu sources) and Desktopbsd

Re: problem with 64 bit binutils (32bit seems ok)

2009-12-10 Thread me
Re Not a bug. objcopy -O binary on a relocatable file loses the relocs. X86_64 uses rela style relocs where the addend is in the reloc, x86 uses rel where the addend is in the section. So in the latter case you get the "+4" from .text+4, in the former you don't. Phew! Thanks very much Alan! D

Re: problem with 64 bit binutils (32bit seems ok)

2009-12-10 Thread me
Alan I'm a complete beginner re asm & binutils it would've taken me a very long time to work this out so thanks very much for coming back! ___ bug-binutils mailing list bug-binutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-binutils

still struggling to produce the same flat binary with both 32 and 64bit binutils tool chains

2010-01-07 Thread me
I posted http://www.mail-archive.com/bug-binutils@gnu.org/msg08677.html on Wed, 09 Dec 2009 14:12:16 -0800 and Alan Modra very kindly advised that I needed to final link the file. Since that time I have been unable to reproduce the output with 64bit binutils. I've also tried a couple of forums.

[Bug gold/5990] New: running out of file descriptors when linking >1024 files

2008-03-27 Thread me at cgf dot cx
ian at airs dot com ReportedBy: me at cgf dot cx CC: bug-binutils at gnu dot org http://sourceware.org/bugzilla/show_bug.cgi?id=5990 --- You are receiving this mail because: --- You are on the CC list for the bug, or are watching someone who

[Bug binutils/11337] windres compiles menus and dialogs to UNICODE not ANSI

2013-06-20 Thread mxcl at me dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=11337 Max Howell changed: What|Removed |Added CC||mxcl at me dot com --- Comment #8 from

[Bug binutils/11337] windres compiles menus and dialogs to UNICODE not ANSI

2013-06-20 Thread mxcl at me dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=11337 --- Comment #9 from Max Howell --- For others who may come here, a better solution would be to use MingW64. MingW32—dare I saw—is a little unmaintained nowadays. -- You are receiving this mail because: You are on the CC list for the b

[Bug ld/16452] ELF executable with weak reference linked with ld causes assertion in ld.so

2014-01-16 Thread roseandrew at me dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=16452 --- Comment #2 from roseandrew at me dot com --- Good day, I would like to clarify : I'm trying to compile openssh , using own compiled toolchan. at compile tim e I come across such an error openbsd-compat / / libopenbsd-compat.a

[Bug binutils/11401] GNU debuglink section is not described in DEBUG entry in data directory in PE's optional header

2014-02-09 Thread danielux at me dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=11401 Dan Iparraguirre changed: What|Removed |Added CC||danielux at me dot com --- Comment

[Bug gas/18581] New: (ARM): issue with function names with a dash inside

2015-06-23 Thread adrien at guinet dot me
Component: gas Assignee: unassigned at sourceware dot org Reporter: adrien at guinet dot me Target Milestone: 2.25 Created attachment 8384 --> https://sourceware.org/bugzilla/attachment.cgi?id=8384&action=edit failing test case here is an issue when assembling an ARM assemb

[Bug binutils/19063] New: objcopy does not set Time/Date field for created pei-x86-64 file

2015-10-04 Thread tsoome at me dot com
Priority: P2 Component: binutils Assignee: unassigned at sourceware dot org Reporter: tsoome at me dot com Target Milestone: --- GNU objdump (GNU Binutils) 2.25.51.20151004 GNU objcopy (GNU Binutils) 2.25.51.20151004 do create and handle pei files: /home

[Bug binutils/19063] objcopy does not set Time/Date field for created pei-x86-64 file

2015-10-04 Thread tsoome at me dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=19063 --- Comment #3 from Toomas Soome --- -p does not change the result. same Thu Jan 1 03:00:00 1970 at time/date field. -- You are receiving this mail because: You are on the CC list for the bug. __

[Bug ld/21677] New: ld 2.27 has unexplained 10x performance improvement in some cases

2017-06-26 Thread mail at nh2 dot me
: normal Priority: P2 Component: ld Assignee: unassigned at sourceware dot org Reporter: mail at nh2 dot me Target Milestone: --- Hi, the GHC Haskell compiler uses ld to link its binaries. There is currently a performance regression in GHC 8.2 that makes linking

[Bug ld/21677] ld 2.27 has unexplained 10x performance improvement in some cases

2017-06-26 Thread mail at nh2 dot me
https://sourceware.org/bugzilla/show_bug.cgi?id=21677 mail at nh2 dot me changed: What|Removed |Added CC||mail at nh2 dot me -- You are

[Bug binutils/22009] New: Excessive memory allocation resulting from memory leakge due to incorrect handling of input file

2017-08-25 Thread me at adhokshajmishraonline dot in
: UNCONFIRMED Severity: normal Priority: P2 Component: binutils Assignee: unassigned at sourceware dot org Reporter: me at adhokshajmishraonline dot in Target Milestone: --- Created attachment 10367 --> https://sourceware.org/bugzilla/attachment.cgi

[Bug binutils/22009] Excessive memory allocation resulting from memory leakge due to incorrect handling of input file

2017-08-25 Thread me at adhokshajmishraonline dot in
https://sourceware.org/bugzilla/show_bug.cgi?id=22009 --- Comment #1 from Adhokshaj Mishra --- Created attachment 10368 --> https://sourceware.org/bugzilla/attachment.cgi?id=10368&action=edit Partial trace from ltrace This partial trace output from ltrace ltrace -o trace.txt ./objdump -x -C .

[Bug binutils/22009] Excessive memory allocation resulting from memory leakge due to incorrect handling of input file

2017-08-25 Thread me at adhokshajmishraonline dot in
https://sourceware.org/bugzilla/show_bug.cgi?id=22009 --- Comment #2 from Adhokshaj Mishra --- Created attachment 10369 --> https://sourceware.org/bugzilla/attachment.cgi?id=10369&action=edit Massif output Output from valgrind massif for 30s run. valgrind --tool=massif ./objdump -x -C ./paylo

[Bug binutils/22009] Excessive memory allocation resulting from memory leakge due to incorrect handling of input file

2017-09-05 Thread me at adhokshajmishraonline dot in
https://sourceware.org/bugzilla/show_bug.cgi?id=22009 --- Comment #4 from Adhokshaj Mishra --- Sure. Will do that. -- You are receiving this mail because: You are on the CC list for the bug. ___ bug-binutils mailing list bug-binutils@gnu.org https://l

[Bug binutils/28926] New: objcopy --weaken-symbol does not weaken STB_GNU_UNIQUE symbols

2022-02-27 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: --- echo '.data; .type x, @gnu_unique_object; x:' | as - -o a.o objcopy -W x a.o readelf -Ws a.o The symbol &

[Bug binutils/28926] objcopy --weaken-symbol does not weaken STB_GNU_UNIQUE symbols

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

[Bug ld/28902] ld: `not found for insert` error has a weird ordering

2022-03-08 Thread i at maskray dot me
https://sourceware.org/bugzilla/show_bug.cgi?id=28902 --- Comment #3 from Fangrui Song --- Hi Nick, sorry for my belated reply. I was on a trip. > > ld.bfd a.o -T insert-data.lds -T a.lds # ok > > ld.bfd a.o -T a.lds -T insert-data.lds # .data not found for insert > > > > # Remark: The order

[Bug binutils/28926] objcopy --weaken-symbol does not weaken STB_GNU_UNIQUE symbols

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

[Bug gas/29012] New: gas: .set should copy st_size only if src's st_size is unset

2022-03-30 Thread i at maskray dot me
erity: normal Priority: P2 Component: gas Assignee: unassigned at sourceware dot org Reporter: i at maskray dot me Target Milestone: --- For ``` .size foo1, 1 foo1: .set bar1, foo1 .size bar1, 2 .size bar2, 2 .set bar2, foo1 .set bar3, foo2 .size bar3, 2 .size

[Bug gas/29012] gas: .set should copy st_size only if src's st_size is unset

2022-03-30 Thread i at maskray dot me
https://sourceware.org/bugzilla/show_bug.cgi?id=29012 --- Comment #1 from Fangrui Song --- PATCH: https://sourceware.org/pipermail/binutils/2022-March/120299.html LLVM integrated assembler has had a similar behavior since 2014-03: https://github.com/llvm/llvm-project/commit/a041ef1bd8905f0d58e

[Bug gas/29012] gas: .set should copy st_size only if src's st_size is unset

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

[Bug gas/29067] New: gas: -gsomething-not-already-a-long-option does not get a diagnostic

2022-04-15 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: --- https://sourceware.org/git/?p=binutils-gdb.git;a=commit;h=4a5700b62f767ed08c97122bad182244700bb4e3 added a diagnostic

[Bug ld/29072] ld silently make the program stack area executable if nested function is used

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

[Bug binutils/29135] New: nm: add --no-weak

2022-05-09 Thread i at maskray dot me
Assignee: unassigned at sourceware dot org Reporter: i at maskray dot me Target Milestone: --- Since 2018-07 (https://reviews.llvm.org/D48751), https://llvm.org/docs/CommandGuide/llvm-nm.html supports --no-weak for listing non-weak symbols. The short option -W is added as an alias. I

[Bug ld/29136] New: ld: ENTRY(no_such_symbol) in -shared mode does not report a warning

2022-05-09 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: --- as /dev/null -o a.o echo 'ENTRY(no_such_symbol)' > a.t ld.bfd -T a.t -shared a.o Both `ld.bfd -e no_such_symbo

[Bug ld/28824] relro security issues

2022-05-11 Thread i at maskray dot me
https://sourceware.org/bugzilla/show_bug.cgi?id=28824 Fangrui Song changed: What|Removed |Added CC||i at maskray dot me --- Comment #8

[Bug ld/27451] ld: Provide a way to make C identifier name sections GCable under __start_/__stop_ references

2022-06-21 Thread i at maskray dot me
https://sourceware.org/bugzilla/show_bug.cgi?id=27451 Fangrui Song changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Target Milestone|---

[Bug ld/29310] [2.39 Regression] copy relocation against non-copyable protected symbol `__cxa_ pure_virtual' on aarch64-linux-gnu

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

[Bug ld/29377] non-canonical reference to canonical protected function

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

[Bug ld/29376] multiple definition of weak symbols on MinGW toolchain

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

[Bug binutils/29397] New: binutils: support zstd

2022-07-24 Thread i at maskray dot me
Assignee: unassigned at sourceware dot org Reporter: i at maskray dot me Target Milestone: --- Zstandard is a "universal" compression algorithm which scales from low-ratio-very-fast to high-ratio-pretty-slow. The generic-abi proposal https://groups.google.com/g/generic-abi/c/s

[Bug binutils/29397] binutils: support zstd

2022-07-24 Thread i at maskray dot me
https://sourceware.org/bugzilla/show_bug.cgi?id=29397 Fangrui Song changed: What|Removed |Added CC||hjl.tools at gmail dot com,

[Bug binutils/29397] binutils: support zstd for SHF_COMPRESSED debug sections

2022-07-24 Thread i at maskray dot me
https://sourceware.org/bugzilla/show_bug.cgi?id=29397 Fangrui Song changed: What|Removed |Added Summary|binutils: support zstd |binutils: support zstd for

[Bug binutils/29397] binutils: support zstd for SHF_COMPRESSED debug sections

2022-07-25 Thread i at maskray dot me
https://sourceware.org/bugzilla/show_bug.cgi?id=29397 --- Comment #1 from Fangrui Song --- Add more tools to the list: * nm * addr2line For objcopy --compress-debug-sections=zstd , I think it should apply only to uncompressed .debug_* sections. If a section is compressed by zlib, the format sho

[Bug ld/29540] New: ld ppc64: unneeded R_PPC64_NONE in .rela.dyn when linking Linux vdso

2022-08-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: --- This should be reproducible with many Linux versions, but I have just checked some recent commits, e.g

[Bug gold/25968] plugin_test_1 fails when --gc-sections is on by default

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

[Bug gold/25968] gold: --emit-relocs --gc-sections => internal error in do_layout, at ../../gold/object.cc

2022-09-04 Thread i at maskray dot me
https://sourceware.org/bugzilla/show_bug.cgi?id=25968 Fangrui Song changed: What|Removed |Added Summary|plugin_test_1 fails when|gold: --emit-relocs

[Bug gold/27741] Using --emit-relocs with --gc-sections or -flto ends in failure

2022-09-04 Thread i at maskray dot me
|UNCONFIRMED |RESOLVED CC||i at maskray dot me --- Comment #1 from Fangrui Song --- Duplicate of PR25968 *** This bug has been marked as a duplicate of bug 25968 *** -- You are receiving this mail because: You are on the CC list for the bug.

[Bug gold/25968] gold: --emit-relocs --gc-sections => internal error in do_layout, at ../../gold/object.cc

2022-09-04 Thread i at maskray dot me
https://sourceware.org/bugzilla/show_bug.cgi?id=25968 Fangrui Song changed: What|Removed |Added CC||806251055 at qq dot com --- Comment #2

[Bug gold/25968] gold: --emit-relocs --gc-sections => internal error in do_layout, at ../../gold/object.cc

2022-09-04 Thread i at maskray dot me
https://sourceware.org/bugzilla/show_bug.cgi?id=25968 --- Comment #3 from Fangrui Song --- See https://github.com/llvm/llvm-project/issues/57545 for a llvm-project/bolt --emit-relocs link issue due to this gold bug. -- You are receiving this mail because: You are on the CC list for the bug.

[Bug gold/25968] gold: --emit-relocs --gc-sections on .eh_frame => internal error in do_layout, at ../../gold/object.cc

2022-09-04 Thread i at maskray dot me
https://sourceware.org/bugzilla/show_bug.cgi?id=25968 Fangrui Song changed: What|Removed |Added Summary|gold: --emit-relocs |gold: --emit-relocs

[Bug binutils/29566] New: objdump -p considers an empty .gnu.version_r invalid

2022-09-13 Thread i at maskray dot me
Component: binutils Assignee: unassigned at sourceware dot org Reporter: i at maskray dot me Target Milestone: --- % cat a.yaml --- !ELF FileHeader: Class: ELFCLASS64 Data:ELFDATA2LSB Type:ET_EXEC Machine: EM_X86_64 Sections: - Name

[Bug gas/19109] Cannot configure default flag_compress_debug

2022-09-14 Thread i at maskray dot me
https://sourceware.org/bugzilla/show_bug.cgi?id=19109 Fangrui Song changed: What|Removed |Added CC||i at maskray dot me --- Comment #40

[Bug binutils/29397] binutils: support zstd for SHF_COMPRESSED debug sections

2022-09-18 Thread i at maskray dot me
https://sourceware.org/bugzilla/show_bug.cgi?id=29397 Fangrui Song changed: What|Removed |Added Assignee|unassigned at sourceware dot org |i at maskray dot me -- You

[Bug binutils/29397] binutils: support zstd for SHF_COMPRESSED debug sections

2022-09-18 Thread i at maskray dot me
https://sourceware.org/bugzilla/show_bug.cgi?id=29397 --- Comment #2 from Fangrui Song --- https://sourceware.org/pipermail/gdb-patches/2022-September/191915.html [PATCH] binutils, gdb: support zstd compressed debug sections -- You are receiving this mail because: You are on the CC list for the

[Bug binutils/29566] objdump -p considers an empty .gnu.version_r invalid

2022-09-21 Thread i at maskray dot me
https://sourceware.org/bugzilla/show_bug.cgi?id=29566 --- Comment #2 from Fangrui Song --- The spec (https://sourceware.org/gnu-gabi/program-loading-and-dynamic-linking.txt) doesn't reject it. For a section whose content is a concatenated N items, the ELF spirits typically allows N==0, as otherwi

[Bug binutils/29397] binutils: support zstd for SHF_COMPRESSED debug sections

2022-09-26 Thread i at maskray dot me
https://sourceware.org/bugzilla/show_bug.cgi?id=29397 --- Comment #3 from Fangrui Song --- (In reply to Fangrui Song from comment #2) > https://sourceware.org/pipermail/gdb-patches/2022-September/191915.html > [PATCH] binutils, gdb: support zstd compressed debug sections The latest version is at

[Bug binutils/29640] readelf: support zstd for SHF_COMPRESSED debug sections

2022-09-30 Thread i at maskray dot me
https://sourceware.org/bugzilla/show_bug.cgi?id=29640 --- Comment #1 from Fangrui Song --- Also, the --decompress option decompresses section content. -- You are receiving this mail because: You are on the CC list for the bug.

[Bug gold/29641] gold, dwp: support zstd for SHF_COMPRESSED debug sections

2022-09-30 Thread i at maskray dot me
https://sourceware.org/bugzilla/show_bug.cgi?id=29641 Fangrui Song changed: What|Removed |Added See Also||https://sourceware.org/bugz

[Bug gold/29641] New: gold, dwp: support zstd for SHF_COMPRESSED debug sections

2022-09-30 Thread i at maskray dot me
Priority: P2 Component: gold Assignee: ccoutant at gmail dot com Reporter: i at maskray dot me CC: ian at airs dot com Target Milestone: --- dwp needs to decompress compressed .dwo . gold needs to decompress compressed input sections and compress

[Bug binutils/29397] binutils: support zstd for SHF_COMPRESSED debug sections

2022-09-30 Thread i at maskray dot me
https://sourceware.org/bugzilla/show_bug.cgi?id=29397 Fangrui Song changed: What|Removed |Added See Also||https://sourceware.org/bugz

[Bug gold/29641] gold, dwp: support zstd for SHF_COMPRESSED debug sections

2022-09-30 Thread i at maskray dot me
https://sourceware.org/bugzilla/show_bug.cgi?id=29641 --- Comment #2 from Fangrui Song --- bfd/compress.c is used by many utilities (objcopy/addr2line/objdump/etc), but gas/readelf need to implement their own. gold/dwp share code and need separate support as well. https://sourceware.org/pipermai

[Bug binutils/29640] readelf: support zstd for SHF_COMPRESSED debug sections

2022-09-30 Thread i at maskray dot me
https://sourceware.org/bugzilla/show_bug.cgi?id=29640 --- Comment #2 from Fangrui Song --- https://sourceware.org/pipermail/binutils/2022-October/123240.html [PATCH] readelf: support zstd compressed debug sections [PR 29640] -- You are receiving this mail because: You are on the CC list for the

[Bug ld/29654] New: ld: add -w to suppress warnings

2022-10-05 Thread i at maskray dot me
Assignee: unassigned at sourceware dot org Reporter: i at maskray dot me Target Milestone: --- Apple ld64 and llvm-project ld64.lld support -w to suppress warnings. -w was picked likely because compiler drivers use -w to suppress warnings. I think -w mildly benefits GNU ld/gold as

[Bug ld/29654] ld: add -w to suppress warnings

2022-10-18 Thread i at maskray dot me
Cheers > Nick Hi Nick, thanks for sending a patch! This looks good with just one thought: `config.fatal_warnings = false;` makes me wonder how -w interacts with --fatal-warnings. It seems that -w --fatal-warnings and --fatal-warnings -w have the same effect (-w wins, which m

[Bug binutils/29640] readelf: support zstd for SHF_COMPRESSED debug sections

2022-10-20 Thread i at maskray dot me
https://sourceware.org/bugzilla/show_bug.cgi?id=29640 --- Comment #3 from Fangrui Song --- (In reply to Fangrui Song from comment #2) > https://sourceware.org/pipermail/binutils/2022-October/123240.html [PATCH] > readelf: support zstd compressed debug sections [PR 29640] The patch is stilling wa

[Bug binutils/29640] readelf: support zstd for SHF_COMPRESSED debug sections

2022-10-21 Thread i at maskray dot me
https://sourceware.org/bugzilla/show_bug.cgi?id=29640 Fangrui Song changed: What|Removed |Added Assignee|unassigned at sourceware dot org |i at maskray dot me

[Bug gold/29641] gold, dwp: support zstd for SHF_COMPRESSED debug sections

2022-11-10 Thread i at maskray dot me
at gmail dot com |i at maskray dot me Target Milestone|--- |2.40 Resolution|--- |FIXED --- Comment #3 from Fangrui Song --- Closed by https://sourceware.org/git?p=binutils-gdb.git;a=commit;h

[Bug ld/29820] New: ld x86: -r should not define _TLS_MODULE_BASE_

2022-11-22 Thread i at maskray dot me
Component: ld Assignee: unassigned at sourceware dot org Reporter: i at maskray dot me Target Milestone: --- cat > a.s <: 401000: 48 c7 c0 e0 ff ff ff movq$-0x20, %rax # should be $0x0 401007: 66 90 nop 401009: 64 8b 90

[Bug ld/29823] New: ld riscv: undefined elf_backend_obj_attrs_handle_unknown causes segfault when merging .riscv.attributes

2022-11-23 Thread i at maskray dot me
(HEAD) Status: NEW Severity: normal Priority: P2 Component: ld Assignee: unassigned at sourceware dot org Reporter: i at maskray dot me Target Milestone: --- % cat a.s .attribute 9, "0" % riscv64-linux-gnu-gcc -c a.s % ~/De

[Bug ld/29823] ld riscv: undefined elf_backend_obj_attrs_handle_unknown causes segfault when merging .riscv.attributes

2022-11-23 Thread i at maskray dot me
https://sourceware.org/bugzilla/show_bug.cgi?id=29823 Fangrui Song changed: What|Removed |Added CC||kito.cheng at gmail dot com,

[Bug binutils/29847] New: objdump: add --show-all-symbols

2022-12-04 Thread i at maskray dot me
Assignee: unassigned at sourceware dot org Reporter: i at maskray dot me Target Milestone: --- llvm-objdump 16 will have a new option --show-all-symbols (https://reviews.llvm.org/D131589) which prints all symbols during disassembly. This is useful to know all symbols defined at

[Bug ld/29939] New: -z pack-relative-relocs --no-keep-memory -pie tries to write a yet-to-be-loaded section content

2022-12-24 Thread arsen at aarsen dot me
: NEW Severity: normal Priority: P2 Component: ld Assignee: unassigned at sourceware dot org Reporter: arsen at aarsen dot me Target Milestone: --- GCC: gcc-12 (Gentoo 12.2.1_p20221217 p6) 12.2.1 20221217 LD: GNU ld (Gentoo 2.39 p5) 2.39.0, and GNU

[Bug ld/29939] -z pack-relative-relocs --no-keep-memory -pie tries to write a yet-to-be-loaded section content

2022-12-27 Thread arsen at aarsen dot me
https://sourceware.org/bugzilla/show_bug.cgi?id=29939 --- Comment #2 from Arsen Arsenović --- Builds the original reproducer (webkitgtk), thanks! -- You are receiving this mail because: You are on the CC list for the bug.

[Bug binutils/29947] New: libbfd real_fopen & libiberty unlink_if_ordinary functions are not handling Windows nul device correctly

2022-12-28 Thread himalr at proton dot me
sion: 2.39 Status: UNCONFIRMED Severity: normal Priority: P2 Component: binutils Assignee: unassigned at sourceware dot org Reporter: himalr at proton dot me Target Milestone: --- Created attachment 14541 --> https://sourceware.org/b

[Bug binutils/29947] libbfd real_fopen & libiberty unlink_if_ordinary functions are not handling Windows nul device correctly

2023-01-03 Thread himalr at proton dot me
https://sourceware.org/bugzilla/show_bug.cgi?id=29947 --- Comment #3 from Himal --- Hello Nick, Thanks for applying the patch. Sure, I'll submit the libiberty patch proposal to the GCC project as well. Regards, Himal -- You are receiving this mail because: You are on the CC list for the bug.

[Bug binutils/29947] libbfd real_fopen & libiberty unlink_if_ordinary functions are not handling Windows nul device correctly

2023-01-03 Thread himalr at proton dot me
https://sourceware.org/bugzilla/show_bug.cgi?id=29947 --- Comment #4 from Himal --- I've reported the libiberty bug to [GCC](https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108276) -- You are receiving this mail because: You are on the CC list for the bug.

[Bug ld/24784] elf_x86_64_check_tls_transition should allow R_X86_64_GOTPCREL (-fno-plt)

2023-01-05 Thread i at maskray dot me
https://sourceware.org/bugzilla/show_bug.cgi?id=24784 --- Comment #9 from Fangrui Song --- rustc runs into this problem as well as it currently somehow defaults to disable R_X86_64_*GOTPCRELX/R_386_GOT32X. Since the fix is so trivial, I sent https://sourceware.org/pipermail/binutils/2023-Januar

[Bug ld/28824] relro security issues

2023-01-24 Thread i at maskray dot me
https://sourceware.org/bugzilla/show_bug.cgi?id=28824 --- Comment #22 from Fangrui Song --- > [...] (psykose/alice confirmed lld does not have the problem on alpine, but I > am not sure if they do the correct thing™ here security-wise -- it's good to > have a concrete idea here) lld does the c

[Bug ld/30091] Bundle all artifacts and command line invocation to quickly reproduce linker errors

2023-02-06 Thread i at maskray dot me
|--- |DUPLICATE CC||i at maskray dot me --- Comment #1 from Fangrui Song --- Thanks for +1 on this feature request. I reported it on https://sourceware.org/bugzilla/show_bug.cgi?id=26119 as well :) In lld, the feature is also activated

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

2023-02-06 Thread i at maskray dot me
https://sourceware.org/bugzilla/show_bug.cgi?id=26119 Fangrui Song changed: What|Removed |Added CC||hiraditya at msn dot com --- Comment #

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

2023-03-06 Thread i at maskray dot me
https://sourceware.org/bugzilla/show_bug.cgi?id=27565 --- Comment #1 from Fangrui Song --- Justin Cady wants to add REVERSE to ld.lld in https://reviews.llvm.org/D145381 The semantics seem pretty clear, so ld.lld adopting the feature first may be fine :) -- You are receiving this mail because:

[Bug ld/24784] elf_x86_64_check_tls_transition should allow R_X86_64_GOTPCREL (-fno-plt)

2023-03-10 Thread i at maskray dot me
https://sourceware.org/bugzilla/show_bug.cgi?id=24784 Fangrui Song changed: What|Removed |Added Resolution|INVALID |FIXED --- Comment #13 from Fangrui Son

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

2023-03-24 Thread i at maskray dot me
https://sourceware.org/bugzilla/show_bug.cgi?id=27565 --- Comment #3 from Fangrui Song --- (In reply to Nick Clifton from comment #2) > Created attachment 14772 [details] > Proposed patch > > Hi Fanguri, > > What do you think of this patch ? Does it do what you need ? > > Cheers > Nick H

[Bug ld/30374] New: ld: Add --remap-inputs-file= to remap input files

2023-04-20 Thread i at maskray dot me
Component: ld Assignee: unassigned at sourceware dot org Reporter: i at maskray dot me Target Milestone: --- Hello! I'm considering an option in ld.lld to replace or remove input files with glob patterns. https://reviews.llvm.org/D148859 --remap-inputs-file= can be spec

[Bug ld/30374] ld: Add --remap-inputs-file= to remap input files

2023-04-24 Thread i at maskray dot me
https://sourceware.org/bugzilla/show_bug.cgi?id=30374 --- Comment #1 from Fangrui Song --- I have picked `=` as a separator a la -fdebug-prefix-map=. --remap-inputs= may be handy to specify just one pattern. Here is an example: --remap-inputs-file=1.map --remap-inputs-file=2.map --remap-inputs='

[Bug binutils/30426] New: gas x86: reject {call,jmp} [offset func] in Intel syntax

2023-05-06 Thread i at maskray dot me
Priority: P2 Component: binutils Assignee: unassigned at sourceware dot org Reporter: i at maskray dot me Target Milestone: --- % cat a.s call [offset func] jmp [offset func] % as -msyntax=intel a.s -o a.o % objdump -M intel -dr a.o a.o: file format elf64-x86

[Bug binutils/30426] gas x86: reject {call,jmp} [offset func] in Intel syntax

2023-05-06 Thread i at maskray dot me
https://sourceware.org/bugzilla/show_bug.cgi?id=30426 Fangrui Song changed: What|Removed |Added Target||i686* x86_64* -- You are receiving th

[Bug gas/30449] New: gas riscv: support pseudo-instruction "lga"

2023-05-15 Thread i at maskray dot me
Component: gas Assignee: unassigned at sourceware dot org Reporter: i at maskray dot me Target Milestone: --- "lga" has been in riscv-asm-manual since the resolution to https://github.com/riscv-non-isa/riscv-asm-manual/issues/50 In LLVM 17, LLVM integrated assembl

[Bug gas/30449] gas riscv: support pseudo-instruction "lga"

2023-05-15 Thread i at maskray dot me
https://sourceware.org/bugzilla/show_bug.cgi?id=30449 Fangrui Song changed: What|Removed |Added Target||riscv*-*-* -- You are receiving this

[Bug binutils/30237] strip fails on riscv with 'not enough room for program headers, stgnjAlO[.interp]: bad value'

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

[Bug binutils/30237] strip fails on riscv with 'not enough room for program headers, stgnjAlO[.interp]: bad value'

2023-06-03 Thread i at maskray dot me
https://sourceware.org/bugzilla/show_bug.cgi?id=30237 --- Comment #7 from Fangrui Song --- (In reply to Andreas Schwab from comment #6) > Since arm32 does not have PT_ARM_ATTRIBUTES it cannot have this problem in > the first place. With the PHDRS linker script command, we can customize program h

[Bug binutils/16523] support xz compression of debug info files

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

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

2023-06-26 Thread i at maskray dot me
https://sourceware.org/bugzilla/show_bug.cgi?id=27452 --- Comment #1 from Fangrui Song --- I think we should just allow SHF_ALLOC | SHF_COMPRESSED sections. Created https://groups.google.com/g/generic-abi/c/HUVhliUrTG0 The proposed option syntax is: --compress-sections='.debug_*=zlib' . This app

[Bug binutils/30592] New: objcopy --set-section-flags: support "large" for SHF_X86_64_LARGE

2023-06-27 Thread i at maskray dot me
ty: normal Priority: P2 Component: binutils Assignee: unassigned at sourceware dot org Reporter: i at maskray dot me Target Milestone: --- Linkers may place SHF_X86_64_LARGE sections away from regular sections to alleviate relocation overflow pressure [1]. I

[Bug binutils/30592] objcopy --set-section-flags: support "large" for SHF_X86_64_LARGE

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

[Bug ld/30374] ld: Add --remap-inputs-file= to remap input files

2023-06-29 Thread i at maskray dot me
https://sourceware.org/bugzilla/show_bug.cgi?id=30374 --- Comment #5 from Fangrui Song --- (In reply to Nick Clifton from comment #4) > OK, I have decided to commit my patch now, so that it gets into the next > release. If there are problems we can always reopen this PR. Thank you! I have tested

[Bug binutils/30623] New: objcopy --set-section-flags: support toggling a flag

2023-07-07 Thread i at maskray dot me
Component: binutils Assignee: unassigned at sourceware dot org Reporter: i at maskray dot me Target Milestone: --- It will be more convenient if --set-section-flags supports toggling a flag, instead of specifying the full set of flags, e.g. --set-section-flags .foo=-alloc

[Bug binutils/30592] objcopy --set-section-flags: support "large" for SHF_X86_64_LARGE

2023-07-09 Thread i at maskray dot me
|unassigned at sourceware dot org |i at maskray dot me Resolution|--- |FIXED Status|NEW |RESOLVED --- Comment #2 from Fangrui Song --- https://sourceware.org/git/?p=binutils-gdb.git;a=commit;h=5e24da908dbf6ddeb03e2b194f6b39dea3c660f3

[Bug binutils/30684] New: readelf -s: support an option to display section names

2023-07-25 Thread i at maskray dot me
Component: binutils Assignee: unassigned at sourceware dot org Reporter: i at maskray dot me Target Milestone: --- I almost always prefer readelf -Ws to objdump -t for ELF symbol information as the former presents all information without distortion. Certain symbol types have

[Bug binutils/30684] readelf -s: support an option to display section names

2023-07-27 Thread i at maskray dot me
viour needed to be gated > by a command line option, so I have added --extra-sym-info to do this. Thank you for implementing this! Yes, I think quite a few projects rely on the output of readelf -Ws. Using an opt-in option is necessary. The option name -X/--extra-sym-info looks good to me. Ano

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

2023-08-22 Thread i at maskray dot me
Status: NEW Severity: normal Priority: P2 Component: gas Assignee: unassigned at sourceware dot org Reporter: i at maskray dot me Target Milestone: --- Extracted from https://github.com/llvm/llvm-project/issues/63418 ``` cat > a.s <

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

2023-08-22 Thread i at maskray dot me
https://sourceware.org/bugzilla/show_bug.cgi?id=30788 Fangrui Song changed: What|Removed |Added Target||aarch64*-* -- You are receiving this

[Bug ld/30612] maxpagesize alignment after relro segment takes up space

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

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

2023-09-12 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: --- From https://maskray.me/blog/2021-03-14-the-dark-side-of-riscv-linker-relaxation#ld---emit-relocs (with updated instructions) For

[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||jrtc27 at jrtc27 dot com,

  1   2   3   4   5   6   >