linker scripting: locating overlays after main code
Ian Montgomerie
imontgom@lsil.com
Wed Apr 7 20:16:00 GMT 2004
From: "Richard Sandiford" <rsandifo@redhat.com>
> I might have misunderstood the question, but have you tried
> EXCLUDE_FILE? E.g.:
>
> .Core:
> {
> *(EXCLUDE_FILE (ovl1.* ovl2.*) .text)
> ...
> }
>
> should include everything except ovl1.*(.text) and ovl2.*(.text).
Neat. I didn't see that directive in the GNU ld documentation. A web
search indicates it's probably present in 2.9.4 (my project is using 2.9).
Thanks for the heads up, I may be able to just upgrade ld and use this.
More information about the Binutils
mailing list