|
|
Subscribe / Log in / New account

parallel linking still wanted

parallel linking still wanted

Posted Feb 3, 2025 18:39 UTC (Mon) by Cyberax (✭ supporter ✭, #52523)
In reply to: parallel linking still wanted by quotemstr
Parent article: GNU Binutils 2.44 Released

I'm not sure I've seen linker scripts used outside of glibc and libz? What are they used for these days?


to post comments

parallel linking still wanted

Posted Feb 3, 2025 21:00 UTC (Mon) by ballombe (subscriber, #9523) [Link]

%file /usr/lib/x86_64-linux-gnu/lib*.so(.)| grep -v ELF
/usr/lib/x86_64-linux-gnu/libbsd.so: ASCII text
/usr/lib/x86_64-linux-gnu/libc.so: ASCII text
/usr/lib/x86_64-linux-gnu/libm.so: ASCII text
/usr/lib/x86_64-linux-gnu/libncurses.so: ASCII text
/usr/lib/x86_64-linux-gnu/libncursesw.so: ASCII text
/usr/lib/x86_64-linux-gnu/libtermcap.so: ASCII text

(yes it does not answer your question!)

parallel linking still wanted

Posted Feb 4, 2025 3:42 UTC (Tue) by pizza (subscriber, #46) [Link]

> I'm not sure I've seen linker scripts used outside of glibc and libz? What are they used for these days?

Anything targeting bare-metal hardware, for one.

parallel linking still wanted

Posted Feb 4, 2025 10:08 UTC (Tue) by laarmen (subscriber, #63948) [Link]

FWIW, I've used one a couple of years ago to create some symbols within a static struct to preserve ABI compatibility in a library while doing a massive overhaul of it.
I haven't tried it but maybe if you want to embed a payload directly in an ELF section for $reasons ?

parallel linking still wanted

Posted Feb 4, 2025 14:35 UTC (Tue) by bjackman (subscriber, #109548) [Link]

I seem to remember a project called "Linnucks" or something that relies linker scripts? I think it's an OS kernel (just a hobby, not big and professional like GNU).

:D

Maybe it's possible but for any sort of low-level stuff I think I've always had a linker script.

Still, you could probably identify a fairly small subset of the linker script features that would be able to build most projects? But I dunno.


Copyright © 2025, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds