diff options
author | Patrick Wildt <patrick@cvs.openbsd.org> | 2020-05-29 20:35:57 +0000 |
---|---|---|
committer | Patrick Wildt <patrick@cvs.openbsd.org> | 2020-05-29 20:35:57 +0000 |
commit | 7bf9f1d9b65f42d8602f3d518d7de033082e9b7a (patch) | |
tree | c196bdc2e997ad259b4d32cce39c9cefc27c62a2 /gnu | |
parent | 64e0c7db1392dde4b77acd67d018c74e25688c71 (diff) |
Adjust some PPC ELF code to return -1 instead of doing pointer
arithmetics on NULL, like we did in r1.21 on elflink.c, to stop
clang from complaining when setting up a cross-toolchain.
ok kettenis@
Diffstat (limited to 'gnu')
-rw-r--r-- | gnu/usr.bin/binutils-2.17/bfd/elf64-ppc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gnu/usr.bin/binutils-2.17/bfd/elf64-ppc.c b/gnu/usr.bin/binutils-2.17/bfd/elf64-ppc.c index 33327f44cba..8f932305755 100644 --- a/gnu/usr.bin/binutils-2.17/bfd/elf64-ppc.c +++ b/gnu/usr.bin/binutils-2.17/bfd/elf64-ppc.c @@ -4112,7 +4112,7 @@ ppc64_elf_archive_symbol_lookup (bfd *abfd, len = strlen (name); dot_name = bfd_alloc (abfd, len + 2); if (dot_name == NULL) - return (struct elf_link_hash_entry *) 0 - 1; + return (struct elf_link_hash_entry *) -1; dot_name[0] = '.'; memcpy (dot_name + 1, name, len + 1); h = _bfd_elf_archive_symbol_lookup (abfd, info, dot_name); |