LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 07-02-2015, 09:33 AM   #1
veenamvijaya
LQ Newbie
 
Registered: Apr 2013
Posts: 1

Rep: Reputation: Disabled
rodata section both readable and writable


Hi All,

I have a test.o file, to which I did a readelf and I see rodata has both READ & WRITE permission. 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
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Folder not readable or writable by any other system users RobInRockCity Linux - Newbie 13 02-28-2015 01:17 PM
Scripting, counting the number of readable, writable, and executable items Kratos22 Programming 9 11-29-2010 01:43 AM
cant mount readable writable = no boot? jerf Slackware 11 02-13-2009 07:57 PM
Making New Drive Readable and Writable on Windows XP and Linux tini1212 Linux - General 1 08-29-2004 06:06 PM
More than 32 GB hard disk, should be writable from Linux and readable from windows inditrozen Linux - Hardware 5 08-17-2004 03:42 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 10:22 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration