[Top] [All Lists]

Re: [IDE] Fix build bug

To: Ralf Baechle <>
Subject: Re: [IDE] Fix build bug
From: "Maciej W. Rozycki" <>
Date: Thu, 25 Oct 2007 18:12:34 +0100 (BST)
Cc: Sam Ravnborg <>, Bartlomiej Zolnierkiewicz <>, Andrew Morton <>,,,
In-reply-to: <>
Original-recipient: rfc822;
References: <> <> <> <>
On Thu, 25 Oct 2007, Ralf Baechle wrote:

> >  Somebody wants to mix up read-only and read/write data in the same 
> > section and GCC quite legitimately complains about it.  You cannot have 
> > both at a time.
> My interpretation is that it would be perfectly ok for a C compiler to
> do minimal handling of const by only throwing errors for attempted
> assignments to const objects but otherwise treating them as if they
> were non-const, that is for example putting them into an r/w section.

 That would probably be valid (any C standard expert please correct me if 
I am wrong), but the approach looks like: since we have the capability in 
the hardware and the OS, then why not actually enforce the rule at the run 
time as well?


<Prev in Thread] Current Thread [Next in Thread>