public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* GNU linker script - how to automatically distribute code to multiple non-contiguous sections
@ 2018-10-30 20:28 Adrian Muresan
  2018-11-02 11:01 ` Florian Weimer
  0 siblings, 1 reply; 2+ messages in thread
From: Adrian Muresan @ 2018-10-30 20:28 UTC (permalink / raw)
  To: gcc-help

I'm modifying an existing .ld and I have two flash sections for the code. These two flash sections are not contiguous so I cannot merely extend the definition of one of the sections to include the other.

Currently all of the code can fit in sec1 but if I turn off space optimizations, it doesn't fit.

QUESTION

How do I write the .ld to say:  place as much of the code as will fit in sec1 and then as much as will fit in sec2 and then ... sec3... etc?

I know how to place specific .obj in specific section but that's not what I want because I'll need to constantly modify the .ld as my code changes.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-11-02 11:01 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-10-30 20:28 GNU linker script - how to automatically distribute code to multiple non-contiguous sections Adrian Muresan
2018-11-02 11:01 ` Florian Weimer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).