Fix last NULL in .dynamic section.

This commit is contained in:
athimm 2009-07-23 15:27:24 +00:00
parent 5fa7e52858
commit 545039b4e3
2 changed files with 21 additions and 3 deletions

View File

@ -0,0 +1,16 @@
diff -uNr chrpath-0.13.old/killrpath.c chrpath-0.13/killrpath.c
--- chrpath-0.13.old/killrpath.c 2003-06-24 00:46:15.000000000 +0200
+++ chrpath-0.13/killrpath.c 2009-07-19 23:05:11.000000000 +0200
@@ -73,8 +73,11 @@
if ( ! elf_dynpath_tag(dyns[i].d_tag) )
dynpos++;
}
- for (; dynpos < i; dynpos++)
+ for (; dynpos < i; dynpos++) {
dyns[dynpos].d_tag = DT_NULL;
+ dyns[dynpos].d_un.d_val = 0x0;
+ }
+
if (lseek(fd, phdr.p_offset, SEEK_SET) == -1
|| write(fd, dyns, phdr.p_filesz) != (int)phdr.p_filesz)

View File

@ -1,10 +1,11 @@
Summary: Modify rpath of compiled programs Summary: Modify rpath of compiled programs
Name: chrpath Name: chrpath
Version: 0.13 Version: 0.13
Release: 4%{?dist} Release: 5%{?dist}
License: GPL+ License: GPL+
Group: Development/Tools Group: Development/Tools
URL: ftp://ftp.hungry.com/pub/hungry/chrpath/ URL: ftp://ftp.hungry.com/pub/hungry/chrpath/
Patch0: chrpath-0.13-NULL-entry.patch
Source0: ftp://ftp.hungry.com/pub/hungry/chrpath/%{name}-%{version}.tar.gz Source0: ftp://ftp.hungry.com/pub/hungry/chrpath/%{name}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
@ -15,6 +16,7 @@ is supported.
%prep %prep
%setup -q %setup -q
%patch0 -p1 -b .NULL
%build %build
%configure %configure
@ -36,8 +38,8 @@ rm -rf %{buildroot}
%{_mandir}/man1/chrpath.1* %{_mandir}/man1/chrpath.1*
%changelog %changelog
* Mon Feb 23 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.13-4 * Thu Jul 23 2009 Axel Thimm <Axel.Thimm@ATrpms.net> - 0.13-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild - Fix last entry in .dynamic (by Christian Krause <chkr@plauener.de>).
* Sat Sep 8 2007 Ville Skyttä <ville.skytta at iki.fi> - 0.13-2 * Sat Sep 8 2007 Ville Skyttä <ville.skytta at iki.fi> - 0.13-2
- License: GPL+ - License: GPL+