This is the mail archive of the binutils@sources.redhat.com 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: linker scripting: locating overlays after main code


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.



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