summaryrefslogtreecommitdiff
path: root/devel/chrpath/files/patch-elf.c
diff options
context:
space:
mode:
authorBruce M Simpson <bms@FreeBSD.org>2009-12-02 06:06:47 +0000
committerBruce M Simpson <bms@FreeBSD.org>2009-12-02 06:06:47 +0000
commitb0f638efbb98635b2820855ab8cfe6f262926d70 (patch)
treeb9ea16cc14dfe1139f185fab566e684d0a633cf4 /devel/chrpath/files/patch-elf.c
parent- Minor change of pkg-message.in (diff)
Add new port chrpath, a small tool which originated on Linux to
rewrite the DT_RPATH in an ELF binary. Tested on FreeBSD/amd64 7.2-STABLE.
Notes
Notes: svn path=/head/; revision=245096
Diffstat (limited to 'devel/chrpath/files/patch-elf.c')
-rw-r--r--devel/chrpath/files/patch-elf.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/devel/chrpath/files/patch-elf.c b/devel/chrpath/files/patch-elf.c
new file mode 100644
index 000000000000..340cae861a9e
--- /dev/null
+++ b/devel/chrpath/files/patch-elf.c
@@ -0,0 +1,11 @@
+--- elf.c.orig 2003-12-19 21:07:00.000000000 +0000
++++ elf.c 2009-12-01 20:39:21.000000000 +0000
+@@ -55,7 +55,7 @@
+ if (ehdr->e_phentsize != sizeof(Elf_Phdr))
+ {
+ fprintf(stderr, "section size was read as %d, not %d!\n",
+- ehdr->e_phentsize, sizeof(Elf_Phdr));
++ ehdr->e_phentsize, (int)sizeof(Elf_Phdr));
+ close(fd);
+ return -1;
+ }