CVS commit: src/libexec/ld.elf_so/arch/mips
Module Name:src Committed By: skrll Date: Sat Dec 4 08:50:41 UTC 2021 Modified Files: src/libexec/ld.elf_so/arch/mips: Makefile.inc Log Message: Add a newline To generate a diff of this commit: cvs rdiff -u -r1.20 -r1.21 src/libexec/ld.elf_so/arch/mips/Makefile.inc Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/libexec/ld.elf_so/arch/mips/Makefile.inc diff -u src/libexec/ld.elf_so/arch/mips/Makefile.inc:1.20 src/libexec/ld.elf_so/arch/mips/Makefile.inc:1.21 --- src/libexec/ld.elf_so/arch/mips/Makefile.inc:1.20 Wed Jul 10 15:08:38 2013 +++ src/libexec/ld.elf_so/arch/mips/Makefile.inc Sat Dec 4 08:50:41 2021 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile.inc,v 1.20 2013/07/10 15:08:38 matt Exp $ +# $NetBSD: Makefile.inc,v 1.21 2021/12/04 08:50:41 skrll Exp $ SRCS+= rtld_start.S mips_reloc.c @@ -6,6 +6,7 @@ COPTS+= -G0 CPPFLAGS+= -DELFSIZE=_MIPS_SZPTR CPPFLAGS+= -DRTLD_INHIBIT_COPY_RELOCS + AFLAGS+= -Wa,--fatal-warnings LDFLAGS+= -Wl,-e,rtld_start
CVS commit: src/libexec/ld.elf_so/arch/mips
Module Name:src Committed By: skrll Date: Sat Dec 4 08:50:41 UTC 2021 Modified Files: src/libexec/ld.elf_so/arch/mips: Makefile.inc Log Message: Add a newline To generate a diff of this commit: cvs rdiff -u -r1.20 -r1.21 src/libexec/ld.elf_so/arch/mips/Makefile.inc Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/libexec/ld.elf_so/arch/mips
Module Name:src Committed By: christos Date: Sun Nov 3 03:15:59 UTC 2019 Modified Files: src/libexec/ld.elf_so/arch/mips: mips_reloc.c Log Message: simplify pointer gymnastics that sprained gcc-8 To generate a diff of this commit: cvs rdiff -u -r1.72 -r1.73 src/libexec/ld.elf_so/arch/mips/mips_reloc.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/libexec/ld.elf_so/arch/mips/mips_reloc.c diff -u src/libexec/ld.elf_so/arch/mips/mips_reloc.c:1.72 src/libexec/ld.elf_so/arch/mips/mips_reloc.c:1.73 --- src/libexec/ld.elf_so/arch/mips/mips_reloc.c:1.72 Fri Jan 19 18:17:41 2018 +++ src/libexec/ld.elf_so/arch/mips/mips_reloc.c Sat Nov 2 23:15:59 2019 @@ -1,4 +1,4 @@ -/* $NetBSD: mips_reloc.c,v 1.72 2018/01/19 23:17:41 christos Exp $ */ +/* $NetBSD: mips_reloc.c,v 1.73 2019/11/03 03:15:59 christos Exp $ */ /* * Copyright 1997 Michael L. Hitch @@ -30,7 +30,7 @@ #include #ifndef lint -__RCSID("$NetBSD: mips_reloc.c,v 1.72 2018/01/19 23:17:41 christos Exp $"); +__RCSID("$NetBSD: mips_reloc.c,v 1.73 2019/11/03 03:15:59 christos Exp $"); #endif /* not lint */ #include @@ -95,7 +95,8 @@ load_ptr(void *where, size_t len) (void)memcpy(, where, len); #endif #if BYTE_ORDER == BIG_ENDIAN - (void)memcpy((uint8_t *)(()+1) - len, where, len); + uint8_t *valp = (void *) + (void)memcpy(valp + sizeof(val) - len, where, len); #endif return (len == sizeof(Elf_Sxword)) ? val : (Elf_Sword)val; } @@ -117,7 +118,8 @@ store_ptr(void *where, Elf_Sxword val, s (void)memcpy(where, , len); #endif #if BYTE_ORDER == BIG_ENDIAN - (void)memcpy(where, (const uint8_t *)(()+1) - len, len); + const uint8_t *valp = (const void *) + (void)memcpy(where, valp + sizeof(val) - len, len); #endif }
CVS commit: src/libexec/ld.elf_so/arch/mips
Module Name:src Committed By: christos Date: Sun Nov 3 03:15:59 UTC 2019 Modified Files: src/libexec/ld.elf_so/arch/mips: mips_reloc.c Log Message: simplify pointer gymnastics that sprained gcc-8 To generate a diff of this commit: cvs rdiff -u -r1.72 -r1.73 src/libexec/ld.elf_so/arch/mips/mips_reloc.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.