diff options
author | Roland McGrath <roland@redhat.com> | 2008-05-10 20:40:47 -0400 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2008-05-23 01:27:23 -0400 |
commit | 2ca7633dc73405ee775a2e9b7961b47a38bc882d (patch) | |
tree | 2a4e5340e7c3020421b1dafeb4fd1955798b0a42 /include/asm-powerpc/ppc_asm.h | |
parent | 21451155d8858773ee764e9218de2ca0f4d6fc38 (diff) |
[POWERPC] Tweak VDSO linker script to avoid upsetting old binutils
This works around bugs in older binutils' objcopy.
The placement of these sections does not really matter,
but it confused the buggy old BFD libraries.
Signed-off-by: Roland McGrath <roland@redhat.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'include/asm-powerpc/ppc_asm.h')
-rw-r--r-- | include/asm-powerpc/ppc_asm.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/asm-powerpc/ppc_asm.h b/include/asm-powerpc/ppc_asm.h index 2dbd4e7884fa..ef96bfd4ef4c 100644 --- a/include/asm-powerpc/ppc_asm.h +++ b/include/asm-powerpc/ppc_asm.h | |||
@@ -356,6 +356,12 @@ END_FTR_SECTION_IFCLR(CPU_FTR_601) | |||
356 | #define toreal(rd) | 356 | #define toreal(rd) |
357 | #define fromreal(rd) | 357 | #define fromreal(rd) |
358 | 358 | ||
359 | /* | ||
360 | * We use addis to ensure compatibility with the "classic" ppc versions of | ||
361 | * these macros, which use rs = 0 to get the tophys offset in rd, rather than | ||
362 | * converting the address in r0, and so this version has to do that too | ||
363 | * (i.e. set register rd to 0 when rs == 0). | ||
364 | */ | ||
359 | #define tophys(rd,rs) \ | 365 | #define tophys(rd,rs) \ |
360 | addis rd,rs,0 | 366 | addis rd,rs,0 |
361 | 367 | ||