[Bug ld/10009] Conflict between MIPS PLTS and abicalls stubs

2022-07-28 Thread amodra at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=10009

Alan Modra  changed:

   What|Removed |Added

 Status|WAITING |RESOLVED
 Resolution|--- |OBSOLETE

--- Comment #4 from Alan Modra  ---
unsupported target

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug binutils/10222] Objcopy asserts when copying binary input target to a mach-o-le output target

2022-07-28 Thread amodra at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=10222

Alan Modra  changed:

   What|Removed |Added

 Status|REOPENED|RESOLVED
 Resolution|--- |FIXED

--- Comment #3 from Alan Modra  ---
Works for me with something like objcopy -I binary -O mach-o-i386

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug gas/10775] x86 64 documentation addenda

2022-07-28 Thread amodra at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=10775

Alan Modra  changed:

   What|Removed |Added

 Resolution|--- |FIXED
 Status|REOPENED|RESOLVED

--- Comment #9 from Alan Modra  ---
.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug gas/10443] Silently ignoring shifter arguments within mov (thumb mode) leading to wrong assembly.

2022-07-28 Thread amodra at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=10443

Alan Modra  changed:

   What|Removed |Added

 Resolution|--- |FIXED
 Status|WAITING |RESOLVED

--- Comment #4 from Alan Modra  ---
fixed a long time ago

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug binutils/10773] Malformed archive created when adding several files at once

2022-07-28 Thread amodra at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=10773

Alan Modra  changed:

   What|Removed |Added

 Status|REOPENED|RESOLVED
 Resolution|--- |INVALID

--- Comment #14 from Alan Modra  ---
Presumed makefile dependency bug.  File still being written as it is being
added to archive.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug ld/10865] The entry point is mainCRTStartup

2022-07-28 Thread amodra at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=10865

Alan Modra  changed:

   What|Removed |Added

 Status|WAITING |RESOLVED
 Resolution|--- |FIXED

--- Comment #8 from Alan Modra  ---
.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug binutils/10924] Bug in objdump when disassembling raw armv4t binaries

2022-07-28 Thread amodra at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=10924

Alan Modra  changed:

   What|Removed |Added

 Status|WAITING |RESOLVED
 Resolution|--- |FIXED

--- Comment #51 from Alan Modra  ---
.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug ld/10961] Map file generated too late

2022-07-28 Thread amodra at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=10961

Alan Modra  changed:

   What|Removed |Added

 Resolution|--- |WONTFIX
 Status|WAITING |RESOLVED

--- Comment #5 from Alan Modra  ---
Map output can't be produced until late in linking.  --noinhibit-exec helps in
some cases.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug gold/11264] linker warning "sh_link not set for section `.ARM.exidx'" when using shared library linked by gold

2022-07-28 Thread amodra at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=11264

Alan Modra  changed:

   What|Removed |Added

 Status|REOPENED|RESOLVED
 Resolution|--- |WORKSFORME

--- Comment #3 from Alan Modra  ---
.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug binutils/11477] binutils toplevel Makefile is missing install-strip target

2022-07-28 Thread amodra at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=11477

Alan Modra  changed:

   What|Removed |Added

 Resolution|--- |FIXED
 Status|REOPENED|RESOLVED

--- Comment #3 from Alan Modra  ---
.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug binutils/11582] BFD structure linkage is broken

2022-07-28 Thread amodra at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=11582

Alan Modra  changed:

   What|Removed |Added

 Resolution|--- |INVALID
 Status|REOPENED|RESOLVED

--- Comment #7 from Alan Modra  ---
.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug binutils/11549] Allow 32bit relocations in 64bit code

2022-07-28 Thread amodra at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=11549

Alan Modra  changed:

   What|Removed |Added

 Resolution|--- |WONTFIX
 Status|WAITING |RESOLVED

--- Comment #11 from Alan Modra  ---
.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug ld/11618] Add an option to page-align .bss

2022-07-28 Thread amodra at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=11618

Alan Modra  changed:

   What|Removed |Added

 Resolution|--- |OBSOLETE
 Status|WAITING |RESOLVED

--- Comment #3 from Alan Modra  ---
.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug gas/29341] RISC-V: -march=rv32imcb fails due to cannot find default versions of the ISA extension `b'

2022-07-28 Thread research_trasio at irq dot a4lg.com
https://sourceware.org/bugzilla/show_bug.cgi?id=29341

Tsukasa OI  changed:

   What|Removed |Added

 CC||research_trasio at irq dot 
a4lg.co
   ||m

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug gas/29341] RISC-V: -march=rv32imcb fails due to cannot find default versions of the ISA extension `b'

2022-07-28 Thread research_trasio at irq dot a4lg.com
https://sourceware.org/bugzilla/show_bug.cgi?id=29341

--- Comment #1 from Tsukasa OI  ---
I think this is not a bug.

Note that, 'B' will not be a single extension (at least for now) [1] but
multiple extensions with 'Zb*' names are be defined and ratified.

For instance, upcoming RVA22U64 profile [2] considers following extensions
mandatory:

-   Zba  (address computation)
-   Zbb  (basic bit manipulation)
-   Zbs  (single-bit fiddling)

and following extensions unsupported optional:

-   Zbc  (carry-less multiply)
-   Zbkb (crypto-related subextension)
-   Zbkc (crypto-related subextension)
-   Zbkx (crypto-related subextension)

Try using those extensions instead.

[1]:
https://github.com/riscv/riscv-isa-manual/commit/c1c77c4902d5e7c58613d725d09d66a2a743da1c
[2]: https://github.com/riscv/riscv-profiles/blob/main/profiles.adoc

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug binutils/29342] RISC-V 32: disassembly mishandles negative symbols

2022-07-28 Thread research_trasio at irq dot a4lg.com
https://sourceware.org/bugzilla/show_bug.cgi?id=29342

Tsukasa OI  changed:

   What|Removed |Added

 CC||research_trasio at irq dot 
a4lg.co
   ||m

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug ld/29424] New: ld chokes on DW_FORM_rnglistx

2022-07-28 Thread ro at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=29424

Bug ID: 29424
   Summary: ld chokes on DW_FORM_rnglistx
   Product: binutils
   Version: 2.39
Status: NEW
  Severity: normal
  Priority: P2
 Component: ld
  Assignee: unassigned at sourceware dot org
  Reporter: ro at gcc dot gnu.org
  Target Milestone: ---
  Host: sparc64-unknown-linux-gnu
Target: sparc64-unknown-linux-gnu
 Build: sparc64-unknown-linux-gnu

When building LLVM main on Debian 11/sparc64, I ran into a very weird error
linking one of the compiler-rt testcases, Sanitizer-sparc-Test (the 32-bit
version): I see several instances of

/usr/bin/ld: /usr/bin/ld: DWARF error: invalid or unhandled FORM value: 0x23

where 0x23 is DW_FORM_rnglistx, which clang emits with -gdwarf-5 (the default).
Initially, I used a patch to default to -gdwarf-4 on this target, which avoids
emitting DW_FORM_rnglistx:

https://reviews.llvm.org/D130566

to avoid this.  I couldn't reproduce the problem on Ubuntu 20.04, however.

Later on, it turned out that the error only happens when there are several
undefined referenes to libatomic functions.  When I do link with -latomic, both
the references become resolved and the DWARF error vanishes.

I've originally seen this with the bundled GNU ld 2.38.50.20220707, but it also
reprodues with 2.38.90.20220728.

I cannot tell what to do about this error: ignore the problem, stating `don't
do
this'.  I don't have (and probably won't have the time to create) a smaller
testcase: the bundle of objects (sparc64-rnglistx.tar.xz) is ca. 1.5 MB, too
large to attach here.  I've done this on gcc202 in the GCC cfarm, just in case.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug ld/29424] ld chokes on DW_FORM_rnglistx

2022-07-28 Thread ro at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=29424

--- Comment #1 from Rainer Orth  ---
Created attachment 14237
  --> https://sourceware.org/bugzilla/attachment.cgi?id=14237&action=edit
Debian 11/sparc64 testcse

I see the binutils bugzilla filesize limit is way larger than GCC's, so
attaching
the testcase.  Apart from the object files, it includes two shell scripts:

* sst-la.sh contains the ld invocation with -latomic included, no error
* sst-no-la.sh is the same, just without -latomic, which shows the error

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug ld/29411] ld warning on SPARC: LOAD segment with RWX permissions

2022-07-28 Thread ro at CeBiTec dot Uni-Bielefeld.DE
https://sourceware.org/bugzilla/show_bug.cgi?id=29411

--- Comment #7 from Rainer Orth  ---
> --- Comment #6 from Rainer Orth  ---
>> --- Comment #5 from Nick Clifton  ---
>> (In reply to Rainer Orth from comment #4)
>>
>>> I missed this, although I saw the initial discussion about this warning
>>> fly by.  However, this is not a Solaris/SPARC-only issue: I first saw it
>>> on Linux/sparc64.  Given the SPARC and SPARC V9 psABIs, I guess it
>>> affects at least all SPARC/ELF targets (if not SPARC in general).
>>
>> Ah - I missed this.  Would you mind applying a small patch on top of mine 
>> then,
>> that tweaks the regexp for sparc targets ?  (I am just a little bit swamped 
>> at
>> the moment.  I have come back from PTO to find 19,756 emails waiting for 
>> me...)
>
> Sure.  I'll check if we want this for all SPARC targets or restrict to
> some subset (ELF) somehow.

Patch posted: https://sourceware.org/pipermail/binutils/2022-July/122057.html

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug ld/29424] ld chokes on DW_FORM_rnglistx

2022-07-28 Thread nickc at redhat dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=29424

Nick Clifton  changed:

   What|Removed |Added

   Assignee|unassigned at sourceware dot org   |nickc at redhat dot com
 CC||nickc at redhat dot com
 Status|NEW |ASSIGNED

--- Comment #2 from Nick Clifton  ---
Hi Rainer,

  Unfortunately the reproducer fails for me due to lots of missing system
libraries.  Not surprising really given that I was running the test on an
x86_64 linux box...

  Please could you try out the patch I am about to upload.  It does not do much
more than ignore the form, but it may be enough in this particular case.  (I
believe that the linker is only parsing the DWARF information so that it can
generate an error message about the missing symbols, so I am hoping that not
decoding the range information will not be a big problem).

Cheers
  Nick

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug ld/29424] ld chokes on DW_FORM_rnglistx

2022-07-28 Thread nickc at redhat dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=29424

--- Comment #3 from Nick Clifton  ---
Created attachment 14238
  --> https://sourceware.org/bugzilla/attachment.cgi?id=14238&action=edit
Proposed Patch

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug binutils/29342] RISC-V 32: disassembly mishandles negative symbols

2022-07-28 Thread research_trasio at irq dot a4lg.com
https://sourceware.org/bugzilla/show_bug.cgi?id=29342

--- Comment #3 from Tsukasa OI  ---
I think I found a cause. Testing...

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug binutils/12073] addr2line unwind inlined functions does not always work with dwarf2

2022-07-28 Thread amodra at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=12073

Alan Modra  changed:

   What|Removed |Added

 Resolution|--- |FIXED
 Status|WAITING |RESOLVED

--- Comment #4 from Alan Modra  ---
This was fixed with commit 5d8e6b4d11a1.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug gold/12261] gold fails to link symbols explicitly defined in base-version

2022-07-28 Thread amodra at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=12261

Alan Modra  changed:

   What|Removed |Added

 Status|WAITING |RESOLVED
 Resolution|--- |FIXED

--- Comment #11 from Alan Modra  ---
.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug gas/12448] .struct in included file causes assertion failure

2022-07-28 Thread amodra at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=12448

Alan Modra  changed:

   What|Removed |Added

 Status|WAITING |RESOLVED
 Resolution|--- |WONTFIX

--- Comment #2 from Alan Modra  ---
No testcase

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug gprof/21189] gprof doesn't work with code built with PIE

2022-07-28 Thread leo at yuriev dot ru
https://sourceware.org/bugzilla/show_bug.cgi?id=21189

Leo Yuriev  changed:

   What|Removed |Added

 CC||leo at yuriev dot ru

--- Comment #4 from Leo Yuriev  ---
I was affected by this problem. So (maybe) I'll figure something out.
Please kick me if you have any new information.

Rgs.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug ld/12762] LTO on Windows is broken (C++)

2022-07-28 Thread amodra at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=12762

Alan Modra  changed:

   What|Removed |Added

 Status|REOPENED|RESOLVED
 Resolution|--- |OBSOLETE

--- Comment #35 from Alan Modra  ---
I'm closing this as obsolete because the only testcase here is from 2011.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug ld/13066] LTO linker fails GCC LTO tests

2022-07-28 Thread amodra at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=13066
Bug 13066 depends on bug 12762, which changed state.

Bug 12762 Summary: LTO on Windows is broken (C++)
https://sourceware.org/bugzilla/show_bug.cgi?id=12762

   What|Removed |Added

 Status|REOPENED|RESOLVED
 Resolution|--- |OBSOLETE

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug ld/13255] Wrong `local symbol is referenced by DSO' warnings on Solaris

2022-07-28 Thread amodra at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=13255

Alan Modra  changed:

   What|Removed |Added

 Resolution|--- |FIXED
 Status|WAITING |RESOLVED

--- Comment #4 from Alan Modra  ---
.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug binutils/13302] IRELATIVE relocation should come last

2022-07-28 Thread amodra at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=13302

Alan Modra  changed:

   What|Removed |Added

 Status|REOPENED|NEW

--- Comment #10 from Alan Modra  ---
Fixed on targets mentioned in comment #7, aarch64, csky and loongarch.  s390
and riscv might still be susceptible to irelative ordering problems.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug ld/13621] dangling global hidden symbol in symtab

2022-07-28 Thread amodra at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=13621

Alan Modra  changed:

   What|Removed |Added

 Resolution|--- |WONTFIX
 Status|REOPENED|RESOLVED

--- Comment #13 from Alan Modra  ---
I don't see any reason why a symbol can't be defined at the end of a section
(ie. section vma + section size), which is what happens now.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug binutils/13652] non elf core file whose whose size is greater than zero && u.u_dsize == 0 && u.u_ssize == 0 are being recognized as trad-core

2022-07-28 Thread amodra at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=13652

Alan Modra  changed:

   What|Removed |Added

 Resolution|--- |INVALID
 Status|WAITING |RESOLVED

--- Comment #4 from Alan Modra  ---
As per comment #3 (although the url there for bsd man page is now wrong)

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug ld/13720] Ld 2.22 computes wrong symbol values

2022-07-28 Thread amodra at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=13720

Alan Modra  changed:

   What|Removed |Added

 Resolution|--- |OBSOLETE
 Status|WAITING |RESOLVED

--- Comment #3 from Alan Modra  ---
No reply to questions.  Assuming linker scripts modified to suit new ld
evaluation.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug ld/13855] internal error, aborting at elf64-x86-64.c line 3396 in elf_x86_64_relocate_section

2022-07-28 Thread amodra at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=13855

Alan Modra  changed:

   What|Removed |Added

 Status|WAITING |RESOLVED
 Resolution|--- |OBSOLETE

--- Comment #7 from Alan Modra  ---
.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug gold/14124] Linking fails with 'address of section '.tbss' moves backward from 0xc008 to 0xc000'

2022-07-28 Thread amodra at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=14124

Alan Modra  changed:

   What|Removed |Added

 Status|WAITING |RESOLVED
 Resolution|--- |OBSOLETE

--- Comment #6 from Alan Modra  ---
No reply to questions

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug binutils/14258] dlltool syntax error

2022-07-28 Thread amodra at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=14258

Alan Modra  changed:

   What|Removed |Added

 Status|WAITING |RESOLVED
 Resolution|--- |INVALID

--- Comment #2 from Alan Modra  ---
Closing as per comment #1

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug binutils/14481] bfd leaks archive member hash table

2022-07-28 Thread amodra at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=14481

Alan Modra  changed:

   What|Removed |Added

 Resolution|--- |FIXED
 Status|REOPENED|RESOLVED

--- Comment #7 from Alan Modra  ---
I think this is mostly fixed, and what might not have been fixed is obsolete.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


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

2022-07-28 Thread amodra at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=14663

Alan Modra  changed:

   What|Removed |Added

 Resolution|--- |FIXED
 Status|REOPENED|RESOLVED

--- Comment #9 from Alan Modra  ---
(In reply to Fangrui Song from comment #8)
> I want to ask a related question. Why have these sections to be kept in the
> section header table while they are made SHT_NOBITS?
It was for matching executables against their debug-only objects.  There are
better ways to do that, of course, but that was the original motivation.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug ld/15025] --enable-initfini-array creates .init_array where no input has one

2022-07-28 Thread amodra at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=15025

Alan Modra  changed:

   What|Removed |Added

 Status|WAITING |RESOLVED
 Resolution|--- |OBSOLETE

--- Comment #24 from Alan Modra  ---
.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug binutils/15152] readelf and objdump don't print strings from .dwz file

2022-07-28 Thread amodra at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=15152

Alan Modra  changed:

   What|Removed |Added

 Resolution|--- |FIXED
 Status|WAITING |RESOLVED

--- Comment #4 from Alan Modra  ---
.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug ld/15516] GNU LD is confused when linker plugin turns COMDAT symbol into static w/o renaming.

2022-07-28 Thread amodra at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=15516

Alan Modra  changed:

   What|Removed |Added

 Resolution|--- |OBSOLETE
 Status|REOPENED|RESOLVED

--- Comment #15 from Alan Modra  ---
I'm not sure if this was fixed or not, but a 9 year old lto related bug is
surely obsolete.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug gold/15530] Gold leaves undefined symbols when linking linux kernel module

2022-07-28 Thread amodra at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=15530

Alan Modra  changed:

   What|Removed |Added

 Status|WAITING |RESOLVED
 Resolution|--- |OBSOLETE

--- Comment #5 from Alan Modra  ---
No answer to request, closing.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug ld/16005] [avr] Linker crash on a particular instruction sequence with --relax

2022-07-28 Thread amodra at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=16005

Alan Modra  changed:

   What|Removed |Added

 Status|WAITING |ASSIGNED
   Assignee|unassigned at sourceware dot org   |amodra at gmail dot com

-- 
You are receiving this mail because:
You are on the CC list for the bug.