Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

What is different about the linker ld(1)?

different LD Linker
0
10 Posted

What is different about the linker ld(1)?

0
10

BSD/OS 4.0 uses the GNU binutils 2.8.1 linker. This linker is substantially different from the GNU linker that we provided in previous releases. For a full description, you may view the on-line documentation with `info ld’. Here are some of the highlights: • The -T flag to set the base address of a program has been changed. There are now separate -Ttext, -Tdata and -Tbss flags to set the addresses of specific segments. -T by itself means something completely different. • The -static flag tells the linker to create a statically linked program. Static linking was the default and only style of linking with previous versions of the linker. Without this flag, ld will create a dynamically linked program. • The -shared flag tells the linker to produce a shared object or shared library. The object files in a shared object or shared library should use position-independent code (usually, this means compiling with -fPIC). • The -rpath flag causes the linker to include the given directory name in

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123