Bug #219
binutils: strip does not set the executable bit
| Status: | Closed | Start date: | 12/14/2009 | |
|---|---|---|---|---|
| Priority: | Low | Due date: | ||
| Assignee: | - | % Done: | 0% |
|
| Category: | - | |||
| Target version: | - |
Description
strip /bin/busybox -o walrus ls -l walrus -rw-r--r-- 1 ncopa ncopa 773272 Dec 14 08:37 walrus
From: http://lists.impactlinux.com/pipermail/firmware-impactlinux.com/2009-December/000529.html
It removed the executable bit from the file. I take it this is a gcc 4.4 bug?
(Ahem, not a bug, a "random new unannounced behavior change".)http://www.opengroup.org/onlinepubs/9699919799/utilities/strip.html
The effect of strip on object and executable files shall be similar to the use
of the -s option to c99http://www.opengroup.org/onlinepubs/9699919799/utilities/c99.html
The executable file shall be created as specified in File Read, Write, and
Creation, except that the file permission bits shall be set to: S_IRWXO |
S_IRWXG | S_IRWXUSo yeah, it looks like gcc 4.4 is in violation of susv4 by not setting the
executable bit on its output files.
History
Updated by Natanael Copa about 2 years ago
- Priority changed from Normal to Low
not sure how much we really care about this