On Sat, Mar 22, 2025 at 11:37:40PM +0000, bugzilla-nore...@freebsd.org wrote:
> https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=285401
> 
> --- Comment #66 from Mark Millard <marklmi26-f...@yahoo.com> ---
> (In reply to Dimitry Andric from comment #62)
> (In reply to Baptiste Daroussin from comment #59)
> 
> For reference, readelf -a /lib/libc.so.7 shows, in part,
> the following references to libsys:
> 
> Dynamic section at offset 0x1d0378 contains 30 entries:
>   Tag                Type                  Name/Value
>  0x000000007ffffffd AUXILIARY            Auxiliary library: [libsys.so.7]
>  0x0000000000000001 NEEDED               Shared library: [libsys.so.7]
>  0x000000000000000e SONAME               Library soname: [libc.so.7]
> . . .
> 0000002059f0 000600000402 R_AARCH64_JUMP_SLOT 0000000000000000
> __libsys_interposing_slot + 0
> . . .
>      6: 0000000000000000     0 FUNC    GLOBAL DEFAULT  UND
> __libsys_interposing_slot@FBSDprivate_1.0 (12)
> . . .
> Version needed section (.gnu.version_r):
>   0x0000 vn_version: 1 vn_file: libsys.so.7 vn_cnt: 1
>   0x0010   vna_name: FBSDprivate_1.0 vna_flags: 0 vna_other: 12
> 
> (This is from a world that is an official PkgBase install,
> not a personal build.)
> 
> So, apparently, those references are not enough to lead
> the linker to automatically also look at libsys.so.7
Linker must not.

> during the link operation. This looks to possibly
> contribute to why main gets no link-time reporting about,
> for example, the environ and __progname problems.
> 
> -- 
> You are receiving this mail because:
> You are the assignee for the bug.

Reply via email to