summaryrefslogtreecommitdiffstats
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorJake Ehrlich <jakehehrlich@google.com>2018-05-15 20:53:53 +0000
committerJake Ehrlich <jakehehrlich@google.com>2018-05-15 20:53:53 +0000
commite40398ad98d2de236ea40b4bbf79f23f4d812dda (patch)
tree7ced9f6ac909ab87cd6c51512457fb7f26def3e7 /clang/lib/Frontend/CompilerInvocation.cpp
parent8d522d811a6d8ec72b10dbd76ba670678bc4251b (diff)
downloadbcm5719-llvm-e40398ad98d2de236ea40b4bbf79f23f4d812dda.tar.gz
bcm5719-llvm-e40398ad98d2de236ea40b4bbf79f23f4d812dda.zip
[llvm-objcopy] Add --only-keep-debug as a noop
This option just keeps being a problem and really needs to be implemented in some fashion. Implementing it properly requires some kind of "replaceSectionReference" method because all the existing links need to be maintained. The desired behavior is just for allocated sections to become NOBITS but actually implementing that is rather tricky due to the current design of llvm-objcopy. However converting allocated sections to NOBITS is just an optimization and not something debuggers need. Debuggers can debug a stripped executable and take an unstripped executable for that stripped executable as input. Additionally allocated sections account for a very small part of debug binaries so this optimization is quite small. I propose that for the time being we implement this as a NOP so that people can use llvm-objcopy where they need to, just in a sub-optimal way. This option has already blocked a lot of people and its currently blocking me. llvm-svn: 332396
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud