freebsd-dev/libexec/rtld-elf
Dimitry Andric 918428b837 Fix the following -Werror warning from clang 3.5.0, while building
rtld-elf for powerpc 32 bit:

libexec/rtld-elf/powerpc/reloc.c:486:6: error: taking the absolute value of unsigned type 'Elf_Addr' (aka 'unsigned int') has no effect [-Werror,-Wabsolute-value]
        if (abs(offset) < 32*1024*1024) {     /* inside 32MB? */
            ^
libexec/rtld-elf/powerpc/reloc.c:486:6: note: remove the call to 'abs' since unsigned values cannot be negative
        if (abs(offset) < 32*1024*1024) {     /* inside 32MB? */
            ^~~
1 error generated.

Cast 'offset' to int, since that was intended, and should be safe to do
on architectures with 32-bit two's complement ints.

Reviewed by:	kib
Differential Revision: https://reviews.freebsd.org/D1387
2014-12-28 19:55:44 +00:00
..
amd64 Optimize r270798, only do the second pass over non-plt relocations 2014-08-29 10:43:56 +00:00
arm IFUNC symbol type shall be processed for non-PLT relocations, 2014-08-29 09:29:10 +00:00
i386 Optimize r270798, only do the second pass over non-plt relocations 2014-08-29 10:43:56 +00:00
mips IFUNC symbol type shall be processed for non-PLT relocations, 2014-08-29 09:29:10 +00:00
powerpc Fix the following -Werror warning from clang 3.5.0, while building 2014-12-28 19:55:44 +00:00
powerpc64 IFUNC symbol type shall be processed for non-PLT relocations, 2014-08-29 09:29:10 +00:00
sparc64 IFUNC symbol type shall be processed for non-PLT relocations, 2014-08-29 09:29:10 +00:00
tests Fix "make checkdpadd" by "spoofing" DPADD 2014-08-26 09:01:11 +00:00
debug.c Rtld links with the specially built pic static libc library to get some 2011-08-24 20:05:13 +00:00
debug.h Use C99's varadic macro syntax instead of gcc's. 2006-03-28 18:26:47 +00:00
libmap.c Always check the limits of array index variables before using them. 2014-08-21 02:40:33 +00:00
libmap.h Make the directory mapping functionality, which was previously only 2013-09-21 21:03:52 +00:00
Makefile Convert to LIBADD 2014-11-25 21:18:18 +00:00
malloc.c Before calling mmap() on a shared library's text and data sections, rtld 2014-04-11 16:55:25 +00:00
map_object.c Before calling mmap() on a shared library's text and data sections, rtld 2014-04-11 16:55:25 +00:00
rtld_lock.c Right now, the rtld prefork hook locks the rtld bind lock in the read 2014-05-24 10:23:06 +00:00
rtld_lock.h Implement support for ELF filters in rtld. Both normal and auxillary 2010-12-25 08:51:20 +00:00
rtld_printf.c Add the LD_LIBRARY_PATH_FDS environmental variable. 2014-06-20 17:08:32 +00:00
rtld_printf.h Add the LD_LIBRARY_PATH_FDS environmental variable. 2014-06-20 17:08:32 +00:00
rtld_tls.h
rtld.1 mdoc: remove superfluous paragraph macros. 2014-06-23 18:40:21 +00:00
rtld.c The runtime linker needs to include a path to itself in the link map 2014-12-02 16:22:08 +00:00
rtld.h Optimize r270798, only do the second pass over non-plt relocations 2014-08-29 10:43:56 +00:00
Symbol.map - Export the function added in r265456 rather than the non-existent 2014-05-07 17:21:22 +00:00
xmalloc.c Increase alignment to size of pointer if the alignment is too small. 2014-02-22 11:06:48 +00:00