Re: Stripping ELF .note and .comment sections?
Topi Miettinen writes:
> Martin Schulze writes:
> > s/debhelper & co/install -s/g ?
>
> install -s calls strip, and strip flags include (tadaa)
> --strip-section!
>
> If install -s is modified to insert "--strip-section=.note
> --strip-section=.comment" to strip flags, whole process becomes a non-issue
> to maintainer:
>
> 1. upgrade to fileutils vX.X-x.
> 2. debian/rules binary.
Here's a patch:
diff -ru src/install.c.orig src/install.c
--- src/install.c.orig Sat Mar 21 12:54:43 1998
+++ src/install.c Sat Mar 21 12:56:53 1998
@@ -566,7 +566,8 @@
error (1, errno, _("fork system call failed"));
break;
case 0: /* Child. */
- execlp ("strip", "strip", path, (char *) NULL);
+ execlp ("strip", "strip", "--remove-section=.comment",
+ "--remove-section=.note", path, (char *) NULL);
error (1, errno, _("cannot run strip"));
break;
default: /* Parent. */
-Topi
--
To UNSUBSCRIBE, email to debian-policy-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Reply to: