1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-17 10:26:15 +00:00

Use tabs for indend.

Sponsored by:	The FreeBSD Foundation
MFC after:	1 week
This commit is contained in:
Konstantin Belousov 2015-09-20 01:35:51 +00:00
parent cff8c6f2d1
commit 8f3da8a2d0
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=288001
2 changed files with 17 additions and 17 deletions

View File

@ -203,17 +203,17 @@ elf_reloc_internal(linker_file_t lf, Elf_Addr relocbase, const void *data,
switch (rtype) {
case R_PPC_NONE:
break;
case R_PPC_NONE:
break;
case R_PPC_ADDR32: /* word32 S + A */
error = lookup(lf, symidx, 1, &addr);
if (error != 0)
return -1;
*where = elf_relocaddr(lf, addr + addend);
break;
break;
case R_PPC_ADDR16_LO: /* #lo(S) */
case R_PPC_ADDR16_LO: /* #lo(S) */
error = lookup(lf, symidx, 1, &addr);
if (error != 0)
return -1;
@ -240,17 +240,17 @@ elf_reloc_internal(linker_file_t lf, Elf_Addr relocbase, const void *data,
if (addr > relocbase && addr <= (relocbase + addend))
addr = relocbase;
addr = elf_relocaddr(lf, addr + addend);
*hwhere = ((addr >> 16) + ((addr & 0x8000) ? 1 : 0))
*hwhere = ((addr >> 16) + ((addr & 0x8000) ? 1 : 0))
& 0xffff;
break;
case R_PPC_RELATIVE: /* word32 B + A */
*where = elf_relocaddr(lf, relocbase + addend);
break;
*where = elf_relocaddr(lf, relocbase + addend);
break;
default:
printf("kldload: unexpected relocation type %d\n",
(int) rtype);
printf("kldload: unexpected relocation type %d\n",
(int) rtype);
return -1;
}
return(0);

View File

@ -173,20 +173,20 @@ elf_reloc_internal(linker_file_t lf, Elf_Addr relocbase, const void *data,
switch (rtype) {
case R_PPC_NONE:
break;
case R_PPC_NONE:
break;
case R_PPC64_ADDR64: /* doubleword64 S + A */
error = lookup(lf, symidx, 1, &addr);
if (error != 0)
return -1;
addr += addend;
*where = addr;
break;
*where = addr;
break;
case R_PPC_RELATIVE: /* doubleword64 B + A */
*where = elf_relocaddr(lf, relocbase + addend);
break;
*where = elf_relocaddr(lf, relocbase + addend);
break;
case R_PPC_JMP_SLOT: /* function descriptor copy */
lookup(lf, symidx, 1, &addr);
@ -195,8 +195,8 @@ elf_reloc_internal(linker_file_t lf, Elf_Addr relocbase, const void *data,
break;
default:
printf("kldload: unexpected relocation type %d\n",
(int) rtype);
printf("kldload: unexpected relocation type %d\n",
(int) rtype);
return -1;
}
return(0);