]> git.ipfire.org Git - thirdparty/elfutils.git/commit
Trust AC_SYS_LARGEFILE to provide large file support
authorJosh Stone <jistone@redhat.com>
Fri, 9 Oct 2015 17:10:37 +0000 (10:10 -0700)
committerJosh Stone <jistone@redhat.com>
Fri, 9 Oct 2015 17:10:37 +0000 (10:10 -0700)
commit3425454a10d307fae891fb667cf7969e945cde79
treeba30fbaff59ca353f4dad8759770600853fb00c1
parentf17d101232d6d40e192e61441aa02a12ee8cf9b8
Trust AC_SYS_LARGEFILE to provide large file support

AC_SYS_LARGEFILE defines _FILE_OFFSET_BITS in config.h if needed for
LFS, and this automatically maps things like open to open64.  But quite
a few places used explicit 64-bit names, which won't work on platforms
like FreeBSD where off_t is always 64-bit and there are no foo64 names.
It's better to just trust that AC_SYS_LARGEFILE is doing it correctly.

But we can verify this too, as some file could easily forget to include
config.h.  The new tests/run-lfs-symbols.sh checks all build targets
against lfs-symbols (taken from lintian) to make sure everything was
implicitly mapped to 64-bit variants when _FILE_OFFSET_BITS is set.

Signed-off-by: Josh Stone <jistone@redhat.com>
43 files changed:
config/ChangeLog
config/eu.am
libdw/ChangeLog
libdw/dwarf_begin.c
libdwfl/ChangeLog
libdwfl/argp-std.c
libdwfl/core-file.c
libdwfl/dwfl_build_id_find_elf.c
libdwfl/dwfl_module_getdwarf.c
libdwfl/dwfl_report_elf.c
libdwfl/dwfl_segment_report_module.c
libdwfl/find-debuginfo.c
libdwfl/gzip.c
libdwfl/image-header.c
libdwfl/libdwflP.h
libdwfl/link_map.c
libdwfl/linux-kernel-modules.c
libdwfl/linux-proc-maps.c
libdwfl/offline.c
libdwfl/open.c
libelf/ChangeLog
libelf/elf_getdata_rawchunk.c
libelf/libelfP.h
src/ChangeLog
src/elflint.c
src/findtextrel.c
src/ld.c
src/readelf.c
src/strings.c
src/strip.c
src/unstrip.c
tests/ChangeLog
tests/Makefile.am
tests/alldts.c
tests/arls.c
tests/dwarf-getstring.c
tests/ecp.c
tests/lfs-symbols [new file with mode: 0644]
tests/rdwrmmap.c
tests/run-lfs-symbols.sh [new file with mode: 0755]
tests/test-elf_cntl_gelf_getshdr.c
tests/test-flag-nobits.c
tests/testfile-nolfs.bz2 [new file with mode: 0644]