| Summary: | 'strip' corrupts static libraries | ||
|---|---|---|---|
| Product: | Base System | Reporter: | Sergey <kpect> |
| Component: | bin | Assignee: | freebsd-bugs (Nobody) <bugs> |
| Status: | Closed Works As Intended | ||
| Severity: | Affects Some People | CC: | Jungleboogie0, bapt, diizzy, dim, emaste, garga, gnn, kpect, lidl, na, pi, sbruno, sson, theraven |
| Priority: | --- | ||
| Version: | 11.1-STABLE | ||
| Hardware: | amd64 | ||
| OS: | Any | ||
| URL: | http://bpaste.net/show/8y6wgjoHTK5tpa6qOfwN/ | ||
| See Also: | https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=191587 | ||
|
Description
Sergey
2018-02-14 13:48:04 UTC
GNU strip behaves the same way, and I would suggest using objcopy instead. GNU strip's man page reports that -R <sectionnme> removes "any section named <sectionname> from the output file, in addition to whatever sections would otherwise be removed." WRT ELF Tool Chain strip, it appears it defaults to STRIP_ALL (-s) unless one of these options is set: -S,-g,-d, --only-keep-debug, --strip-unneeded, -x, -X, -N It seems to me that -R should be included in the list, and that the behaviour currently provided by -R should instead be obtained with -R -s, but that would be a divergence from GNU strip that we probably do not want to have. Thank you Ed, then I'm closing it, as explained :) |