nios2: Don't use MIN in dl-machine.h
Commit Message
MIN is used, but param.h may not be included, so expand its single use
inline.
OK for master?
H.J.
---
* sysdeps/nios2/dl-machine.h (elf_machine_rela): Expand MIN.
---
sysdeps/nios2/dl-machine.h | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
@@ -271,7 +271,8 @@ elf_machine_rela (struct link_map *map, const ElfW(Rela) *reloc,
strtab + refsym->st_name);
}
memcpy (reloc_addr_arg, (void *) value,
- MIN (sym->st_size, refsym->st_size));
+ sym->st_size < refsym->st_size
+ ? sym->st_size : refsym->st_size);
break;
case R_NIOS2_GLOB_DAT:
case R_NIOS2_JUMP_SLOT: