Re: [PATCH 1/11] Add generic helpers for arch IPI function calls

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: James Bottomley
Date: Saturday, April 26, 2008 - 7:13 am

On Fri, 2008-04-25 at 23:11 -0700, Andrew Morton wrote:

Erm, that's a bug in the frv toolchain, isn't it?  The linker should
*never* rely on C code annotation for jump lengths ... mainly because
you can screw it all up again in the linker script, so the sectional
annotations should only be in the function body (think
-ffunction-sections)

We have exactly this problem on parisc: our standard relocation jumps
are only 17 bits (on ILP32). The linker actually lays down special
sandwich sections between individual functions (places where we jump to
as a 17 bit relative and then do another absolute jump via a pointer).
The sandwich sections should be added at final link time every place the
linker sees the relative jump is out of range.

James


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

Messages in current thread:
[PATCH 0/11] Generic smp_call_function() #2, Jens Axboe, (Tue Apr 22, 11:50 am)
Re: [PATCH 11/11] s390: convert to generic helpers for IPI ..., Martin Schwidefsky, (Wed Apr 23, 5:42 am)
Re: [PATCH 1/11] Add generic helpers for arch IPI function ..., Jeremy Fitzhardinge, (Fri Apr 25, 11:28 pm)
Re: [PATCH 2/11] x86: convert to generic helpers for IPI f ..., Jeremy Fitzhardinge, (Fri Apr 25, 11:44 pm)
Re: [PATCH 1/11] Add generic helpers for arch IPI function ..., James Bottomley, (Sat Apr 26, 7:13 am)
Re: [PATCH 2/11] x86: convert to generic helpers for IPI f ..., Jeremy Fitzhardinge, (Sun Apr 27, 8:18 am)