Click here to Skip to main content
15,888,351 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi All,

I have a test.o file, to which I did a readelf and I see rodata has both READ & WRITE permissions. Here is the output.

[14] .rodata PROGBITS 00000000004005f8 000005f8
000000000000001c 0000000000000000 WA 0 0 8

Now my question is how can I make the rodata READ only.
Any linker option to make the rodata READ only for the final executable.

Any help...

Thanks in Advance....

--Vijaya
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900