This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: RFC: Assign regions to orphan sections
On Tue, Mar 16, 2010 at 08:18:49AM +0100, Simon Richter wrote:
> Would it make sense to have a mode (-z noorphans or something
> such) where the link would fail if any orphan sections were present, to
> aid in debugging linker scripts?
You can do that easily enough with something like the following at the
end of your SECTIONS.
catchall :
{
*(*)
ASSERT (. == 0, "Orphan section")
}
--
Alan Modra
Australia Development Lab, IBM