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]

How to rename data and bss sections for powerpc-eabi?


If you reply to this mail, please reply to all, so that I get the answer in the
company, too (thanks).

Hello,

I add simple process support to an existing operating system. The operating
system is staticaly linked with the application.

To separate the kernel data from the processes data I need to know which data
is kernel data and which is process data.
Currenly the linker puts the global kernel and global appliation (process) data
together in the .data, .bss and other sections.

I don't like to map the kernel data RW for the application, but on the other
hand I would like to have global data for the application, too.

My idea is to rename the .data, .bss and other segments during the compilation
of the kernel sources. Then I would be able to put them on different addresses
by the linker and I could map them only readable by the application
(processes).

It would be possible to define all kernel variables with the section attribute,
but this is a lot of work. I found the -mdata option for the arc target. But
powerpc-eabi doesn't support such a feature.

Is there any other possibility to achive what I need?
If not, I think I am able to add the -mdata and similar options for
powerpc-eabi. Is there somebody interested to support me, so that this new
options may be added permanently to a future version of gcc?

Best Regards,
    Reinhard

-- 
 Ing. Reinhard Jessich              mailto: reinhard dot jessich at telering dot at
 A-1190 Vienna, Goergengasse 2/2/1  phone: +43/1/3692600
 http://members.telering.at/jessich mobile: +43/664/1735439


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