Code in .subsection 0 should be prior to .subsection 1

Maciej W. Rozycki macro@orcam.me.uk
Tue Nov 25 08:24:25 GMT 2025


On Mon, 24 Nov 2025, Georg-Johann Lay via Binutils wrote:

> > Sub-sections are an assembler-internal thing, i.e. that information is lost
> > by the time the object file is built. Once again you could observe this
> > yourself when looking at the dump of the generate objects, where you will
> > see no trace of sub-sections.
> 
> Ok, thank you for the explanation.
> 
> Though that's not at all clear from the documentation.

 Hmm:

"The object file contains no representation of subsections; 'ld' and other 
programs that manipulate object files see no trace of them.  They just see 
all your text subsections as a text section, and all your data subsections 
as a data section."

If you think the wording is not clear enough, then please send a patch to 
improve it.

  Maciej


More information about the Binutils mailing list