about summary refs log tree commit diff
path: root/pkgs/build-support/setup-hooks/separate-debug-info.sh
AgeCommit message (Collapse)AuthorFilesLines
2017-12-13misc setup-hooks: Use env vars to refer to binutils programsJohn Ericson1-3/+3
This is more robust for cross-compilation
2016-05-22setup-hooks: do not pass missing dirs to find (close #15405)Guillaume Maudoux1-1/+3
find fails when called with an inexistent search path. That situation may arise when the output is created after by a postFixup hook. vcunat amended the PR by clarifying one more `return` to `return 0`.
2016-02-28glibc: Enable separate debug symbolsEelco Dolstra1-1/+2
The importance of glibc makes it worthwhile to provide debug symbols. However, this revealed an issue with separateDebugInfo: it was indiscriminately adding --build-id to all ld invocations, while in fact it should only do that for final links. Glibc also uses non-final ("relocatable") links, leading to subsequent failure to apply a build ID ("Cannot create .note.gnu.build-id section, --build-id ignored"). So now ld-wrapper.sh only passes --build-id for final links.
2016-02-28separateDebugInfo: Compress debug sections at compile/link timeEelco Dolstra1-11/+3
2016-02-18Don't try to apply patchelf to non-ELF binariesEelco Dolstra1-6/+2
2016-02-18separateDebugInfo: Handle weird filenames properlyEelco Dolstra1-7/+5
2016-02-18separateDebugInfo: Restore ELF checkEelco Dolstra1-0/+1
2016-01-15separateDebugInfo: Create symlinks matching original binariesEelco Dolstra1-0/+3
For instance, a binary like libfoo.so will cause a symlink lib/debug/libfoo.so.debug -> .build-id/<build-ID>.debug to be created. This is primarily useful for use with eu-addr2line, if you know the name of a binary and the relative address, but not the build ID.
2015-09-23separateDebugInfo: one more commentVladimír Čunát1-0/+1
2015-09-22separateDebugInfo: fix typo in commentVladimír Čunát1-1/+1
2015-09-22separateDebugInfo: compress it by defaultVladimír Čunát1-1/+8
Using zlib should be cheap enough and save lots of HDD space. Case study (glib): 11 MB -> 4 MB.
2015-09-22separateDebugInfo: Assert LinuxEelco Dolstra1-1/+0
Also remove some unintended setting of separateDebugInfo.
2015-09-17Enable separate debug infoEelco Dolstra1-0/+37
You can now pass separateDebugInfo = true; to mkDerivation. This causes debug info to be separated from ELF binaries and stored in the "debug" output. The advantage is that it enables installing lean binaries, while still having the ability to make sense of core dumps, etc.