This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] C undefined behavior fix
On Wed, Jan 02, 2002 at 02:44:35PM -0800, Richard Henderson wrote:
> On Wed, Jan 02, 2002 at 03:35:57PM -0700, Tom Rini wrote:
> > That's not really an option.
>
> Oh come on. It shouldn't take very much code at all to properly
> relocate the binary. You can use either -fpic or -mrelocatable
> to get hold of the set of addresses in question.
Have you looked at all of the code in question? We're doing a lot of things
before we properly relocate ourself. And as long as things aren't being
optimized away, it just works.
And the other thing is if we want gcc-3.0 to produce a good kernel on
PPC in 2.4.x, the kernel-side changes should be as minimal as possible.
--
Tom Rini (TR1265)
http://gate.crashing.org/~trini/