mips: Don't use MIN in dl-machine.h

MIN is used, but param.h may not be included, so expand its single use
inline.

	* sysdeps/mips/dl-machine.h (elf_machine_reloc): Expand MIN.
This commit is contained in:
H.J. Lu 2017-11-30 16:33:59 -08:00
parent f938b397dd
commit ef5d8b4342
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2017-11-30 H.J. Lu <hongjiu.lu@intel.com>
* sysdeps/mips/dl-machine.h (elf_machine_reloc): Expand MIN.
2017-11-30 Joseph Myers <joseph@codesourcery.com>
* sysdeps/m68k/coldfire/fpu/s_fabsf.c: Include

View File

@ -695,7 +695,8 @@ elf_machine_reloc (struct link_map *map, ElfW(Addr) r_info,
RTLD_PROGNAME, strtab + refsym->st_name);
}
memcpy (reloc_addr, (void *) value,
MIN (sym->st_size, refsym->st_size));
sym->st_size < refsym->st_size
? sym->st_size : refsym->st_size);
break;
}