[Patch, MIPS] Modify dl-machine.h for mips32r6/mips64r6
Joseph Myers
joseph@codesourcery.com
Fri Dec 19 21:51:00 GMT 2014
On Fri, 19 Dec 2014, Steve Ellcey wrote:
> @@ -138,7 +138,11 @@ elf_machine_load_address (void)
> #ifndef __mips16
> asm (" .set noreorder\n"
> " " STRINGXP (PTR_LA) " %0, 0f\n"
> +#if __mips_isa_rev < 6
> " bltzal $0, 0f\n"
> +#else
> + " bal 0f\n"
> +#endif
Correct preprocessor indentation, since inside #ifndef __mips16, i.e. a
single space between "#" and if/else/endif.
> @@ -241,6 +245,11 @@ do { \
> and not just plain _start. */
>
> #ifndef __mips16
> +#if __mips_isa_rev < 6
> +#define LOAD_31 STRINGXP(bltzal $8) "," STRINGXP(.Lcoff)
> +#else
> +#define LOAD_31 STRINGXP(bal .Lcoff)
> +#endif
Likewise (one space before if/else/endif, two before define).
OK with that change.
--
Joseph S. Myers
joseph@codesourcery.com
More information about the Libc-alpha
mailing list