[PATCH] fix PLTJMP macro in libc/sysdeps/linux/sh/clone.S

Paul Mundt lethal at linux-sh.org
Mon Mar 5 05:48:28 UTC 2007


On Sun, Mar 04, 2007 at 11:34:53AM +0100, Carmelo Amoroso wrote:
> Index: libc/sysdeps/linux/sh/clone.S
> ===================================================================
> --- libc/sysdeps/linux/sh/clone.S	(revision 18002)
> +++ libc/sysdeps/linux/sh/clone.S	(working copy)
> @@ -27,7 +27,7 @@
>  
>  
>  #ifdef __HAVE_SHARED__ 
> -#define PLTJMP(_x)	_x##@PLT
> +#define PLTJMP(_x)	_x at PLT
>  #else
>  #define PLTJMP(_x)	_x
>  #endif

There doesn't seem to be any real need for doing the token pasting
anyways, although it is curious why this generates an error while the
pre-processor output still appears to be fundamentally correct.

At first I suspected it was the () nesting from HIDDEN_JUMPTARGET, but
even pasting the symbol in to PLTJMP directly with @PLT generates an
error. It would seem as though the pre-processor has simply gotten more
picky over time.

On Sun, Mar 04, 2007 at 11:39:43AM +0100, Carmelo Amoroso wrote:
> the following patch synchronized the procfs.h header with glibc's one
> for sh arch and makes gdbserver working with th uClibc.
> 
Both of these look fine, I'll apply them, thanks.



More information about the uClibc mailing list