This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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
>


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]