This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC 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: New .rodata section.


Umesh Kalappa <umesh.kalappa0@gmail.com> writes:
> Hi All ,
>
> We are porting gcc4.8.1 to the new target and we created the new
> .rodata section w.r.t flags by get_unnamed_section()  .
>
> Now we need to associate the global  %object data of type  .word or
> .byte  to the  created .rodata section and also we need to emit the
> .rodata section  in the asm file .
>
> Anyone can share their experice or some inputs or reference for the
> same will be appreciated.
>
>  Thank  you  for the patience.

I'm not sure what the properties of this new section are compared to
plain .rodata, but you can select a section using hooks like
TARGET_ASM_SELECT_SECTION.

Thanks,
Richard


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