Re: [Fixed PATCH] hpt366: fix section mismatch warnings

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Sam Ravnborg
Date: Sunday, February 24, 2008 - 10:53 am

On Sun, Feb 24, 2008 at 03:33:51PM +0100, Bartlomiej Zolnierkiewicz wrote:

The problem we face is that gcc in some cases mark the
destination section READ-ONLY and in other cases not.
So if we annotate two variables to go into the same
section and gcc only annotate one of them READ-ONLY them
we will have a section type conflict.

gcc is not consistent across architectures what to mark
READ-ONLY and not. And what we saw here was a combination
where on x86 the destinatin section were marked equal
(READ-ONLY or not READ-ONLY) but on powerpc were marked
different. One was marked READ-ONLY the other was not.

So when playing with const it is improtant to try out with
a 64 bit gcc for powerpc to see if it causes any section
type conflict. Note: 32 bit gcc does not have this
issue.

	Sam

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] hpt366: fix section mismatch warnings, Sam Ravnborg, (Fri Feb 22, 12:46 pm)
Re: [PATCH] hpt366: fix section mismatch warnings, Sergei Shtylyov, (Fri Feb 22, 12:53 pm)
Re: [PATCH] hpt366: fix section mismatch warnings, Sam Ravnborg, (Fri Feb 22, 1:43 pm)
Re: [PATCH] hpt366: fix section mismatch warnings, Bartlomiej Zolnierki ..., (Fri Feb 22, 1:57 pm)
[Fixed PATCH] hpt366: fix section mismatch warnings, Sam Ravnborg, (Sat Feb 23, 2:22 pm)
Re: [Fixed PATCH] hpt366: fix section mismatch warnings, Bartlomiej Zolnierki ..., (Sun Feb 24, 7:33 am)
Re: [Fixed PATCH] hpt366: fix section mismatch warnings, Sam Ravnborg, (Sun Feb 24, 10:53 am)