This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: How to get the default linker script used by gcc?
In fact, I want to append the following scripts
SECTIONS {
.array : {
array = ABSOLUTE(.);
res.o (.data)
array_size = ABSOLUTE(.) - array;
}
}
to the default linker script used by ld.
Is there any simple way to do this, except copying and modifying the
default linker script?
> gcc doesnt know anything about linker scripts. ?that is the job of the linker.
> you can see all the relevant files by linking with -Wl,--verbose.
> -mike
>