[Bug ld/29288] Dependent libraries cannot be found with default sysroot search dir and rpath using cross ld

2022-06-29 Thread galaxyking0419 at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=29288

--- Comment #6 from William Tang  ---
Also, I can confirm the issue does not exist when using gold, only happens when
using bfd ld

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


[Bug binutils/28981] objdump: objdump: Warning: Unrecognized form: 0x22

2022-06-29 Thread herrtimson at yahoo dot de
https://sourceware.org/bugzilla/show_bug.cgi?id=28981

tt_1  changed:

   What|Removed |Added

 CC||herrtimson at yahoo dot de

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


[Bug binutils/29267] readelf..info misreports DW_FORM_loclistx, DW_FORM_rnglistx

2022-06-29 Thread sevaa at sprynet dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=29267

--- Comment #17 from Vsevolod Alekseyev  ---
The loclist entries in sections with nonblank offset tables in are dumped
differently; the start/end address of location entries is not resolved relative
to the corresponding CU's base PC. This is inconsistent with the past behavior,
and rather misleading.

Didn't check the rangelists yet.

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


[Bug ld/29288] Dependent libraries cannot be found with default sysroot search dir and rpath using cross ld

2022-06-29 Thread amodra at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=29288

Alan Modra  changed:

   What|Removed |Added

 Status|UNCONFIRMED |RESOLVED
 Resolution|--- |INVALID

--- Comment #7 from Alan Modra  ---
sysroot and rpath are complicated, and can be difficult to get right.  If using
sysroot you have a linker that has access to your entire file system, but
default searches should be as if the linker was chroot'd at the sysroot.

BFD ld adds the sysroot to absolute paths in rpath when searching for shared
library dependencies, ie. libraries not mentioned on the command line but found
in DT_NEEDED entries of other libraries.  If you accept that linking against
libraries not mentioned on the command line is a good thing (debatable), then
emulating the run-time loader is necessary.  Note that gold doesn't go
searching for library dependencies, hence the gold difference.

I don't believe BFD ld prefixes -rpath paths with the sysroot in other
circumstances.  (You definitely would not want the sysroot prefix added to
DT_NEEDED in executables you create, since they then would have the wrong paths
if copied over to a native environment.)

BFD ld also replaces an initial "=" or "$SYSROOT" in any -L or other
paths with the sysroot.  If configured with a sysroot, the default
library search paths have the "=" prefix.  eg. "=/usr/lib" and "=/lib".

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


[Bug binutils/29267] readelf..info misreports DW_FORM_loclistx, DW_FORM_rnglistx

2022-06-29 Thread sevaa at sprynet dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=29267

--- Comment #18 from Vsevolod Alekseyev  ---
Same story in rnglists.

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