changing ".rodata" section name

Mar 21, 2006 1 Replies

I need (if possible) to change the name of the section where gcc allocates C constants.



Is it possible to ask for a different section name for ALL constants?



Thanks, Marco



Assuming you are using GNU binutils : try objcopy with the '--rename-section' option after compilation or linking.

_Ico

:wq ^X^Cy^K^X^C^C^C^C

Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required