What do two sections of same name mean in a linkerscipt?
Ian Lance Taylor
iant@google.com
Wed May 4 14:48:00 GMT 2011
PRASANTH RAJAGOPAL <prasanthris@gmail.com> writes:
> I read about gnu.linkonce. But I am confused about the idea behind the
> section names appearing twice:
>
> .text & .text.*
>
> Could someone explain me the difference?
The linker script language permits shell patterns. The string ".text"
will only match a section named ".text". The string ".text.*" will
match any section whose name begins with ".text.", such as ".text.fn".
Ian
More information about the Gcc-help
mailing list