Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,9 @@ Makefile
/tests/no-rpath
/tests/no-rpath-*.sh
/tests/*.so
/tests/scratch
/tests/main
/tests/simple
/tests/too-many-strtab
/tests/big-dynstr*
/tests/main-scoped
1 change: 1 addition & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
patchelf-new = final.stdenv.mkDerivation {
name = "patchelf-${self.hydraJobs.tarball.version}";
src = "${self.hydraJobs.tarball}/tarballs/*.tar.bz2";
nativeBuildInputs = [ pkgs.autoreconfHook ];
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is autoreconfHook needed? The tarball contains the generated configure scripts right?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The main use case is having autotools in nix develop but it would also regenerate the configure script to a newer version

doCheck = true;
};

Expand Down
8 changes: 4 additions & 4 deletions tests/Makefile.am
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
LIBS =

check_PROGRAMS = simple main too-many-strtab main-scoped big-dynstr no-rpath contiguous_note_sections
check_PROGRAMS = simple main too-many-strtab main-scoped big-dynstr no-rpath contiguous-note-sections

no_rpath_arch_TESTS = \
no-rpath-amd64.sh \
Expand Down Expand Up @@ -30,7 +30,7 @@ src_TESTS = \
build-id.sh \
invalid-elf.sh \
endianness.sh \
contiguous_note_sections.sh \
contiguous-note-sections.sh \
no-gnu-hash.sh

build_TESTS = \
Expand Down Expand Up @@ -114,6 +114,6 @@ no_rpath_SOURCES = no-rpath.c
# no -fpic for no-rpath.o
no_rpath_CFLAGS =

contiguous_note_sections_SOURCES = contiguous_note_sections.s contiguous_note_sections.ld
contiguous_note_sections_LDFLAGS = -nostdlib -T contiguous_note_sections.ld
contiguous_note_sections_SOURCES = contiguous-note-sections.s contiguous-note-sections.ld
contiguous_note_sections_LDFLAGS = -nostdlib -T contiguous-note-sections.ld
contiguous_note_sections_CFLAGS = -pie
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
# Running --set-interpreter on this binary should not produce the following
# error:
# patchelf: cannot normalize PT_NOTE segment: non-contiguous SHT_NOTE sections
../src/patchelf --set-interpreter ld-linux-x86-64.so.2 contiguous_note_sections
../src/patchelf --set-interpreter ld-linux-x86-64.so.2 contiguous-note-sections