summaryrefslogtreecommitdiffstats
path: root/lldb/lit/ObjectFile/ELF
diff options
context:
space:
mode:
authorPavel Labath <pavel@labath.sk>2019-10-08 13:51:05 +0000
committerPavel Labath <pavel@labath.sk>2019-10-08 13:51:05 +0000
commit9a44ab77637da1e740b72a72765c4504e13d9331 (patch)
tree2b13f117e524b76548be211931c26cbea57d6450 /lldb/lit/ObjectFile/ELF
parent0929e5eca2cb2b9dcc854a3dad86273a6a6e6adc (diff)
downloadbcm5719-llvm-9a44ab77637da1e740b72a72765c4504e13d9331.tar.gz
bcm5719-llvm-9a44ab77637da1e740b72a72765c4504e13d9331.zip
Tweak minidebuginfo-set-and-hit-breakpoint.test
On my system, llvm-objcopy was refusing to remove the .dynsym section because it was still referenced from .rela.plt. Remove that section too, and clarify that this is needed only because llvm-objcopy --only-keep-debug does not work (does not set the sections to SHT_NOBITS). Also, ensure that the test is not creating temporary files in the source tree. llvm-svn: 374046
Diffstat (limited to 'lldb/lit/ObjectFile/ELF')
-rw-r--r--lldb/lit/ObjectFile/ELF/minidebuginfo-set-and-hit-breakpoint.test13
1 files changed, 8 insertions, 5 deletions
diff --git a/lldb/lit/ObjectFile/ELF/minidebuginfo-set-and-hit-breakpoint.test b/lldb/lit/ObjectFile/ELF/minidebuginfo-set-and-hit-breakpoint.test
index 33188d2b4b7..c568a19642a 100644
--- a/lldb/lit/ObjectFile/ELF/minidebuginfo-set-and-hit-breakpoint.test
+++ b/lldb/lit/ObjectFile/ELF/minidebuginfo-set-and-hit-breakpoint.test
@@ -23,9 +23,9 @@
# table.
# IGNORE: comm -13 %t.dynsyms %t.funcsyms > %t.keep_symbols
-# The result of the preceeding command can be preprocessed in %p/Inputs/minidebuginfo.keep_symbols
+# The result of the preceeding command can be hardcoded
# because we know what symbol to keep.
-# RUN: echo "multiplyByFour" > %p/Inputs/minidebuginfo.keep_symbols
+# RUN: echo "multiplyByFour" > %t.keep_symbols
# Separate full debug info into debug binary.
@@ -34,12 +34,15 @@
# Copy the full debuginfo, keeping only a minimal set of symbols and
# removing some unnecessary sections.
-# RUN: llvm-objcopy -S --remove-section .gdb_index --remove-section .comment --keep-symbols=%p/Inputs/minidebuginfo.keep_symbols %t.debug %t.mini_debuginfo
+# RUN: llvm-objcopy -S --remove-section .gdb_index --remove-section .comment --keep-symbols=%t.keep_symbols %t.debug %t.mini_debuginfo
# This command is not from the GDB manual but it slims down embedded minidebug
# info. On top if that, it ensures that we only have the multiplyByThree symbol
-# in the .dynsym section of the main binary.
-# RUN: llvm-objcopy --remove-section=.rela.dyn --remove-section=.gnu.version --remove-section=.gnu.hash --remove-section=.dynsym %t.mini_debuginfo
+# in the .dynsym section of the main binary. The bits removing .rela.plt,
+# .rela.dyn and .dynsym sections can be removed once llvm-objcopy
+# --only-keep-debug starts to work.
+# RUN: llvm-objcopy --remove-section=.rela.plt --remove-section=.rela.dyn \
+# RUN: --remove-section=.gnu.version --remove-section=.gnu.hash --remove-section=.dynsym %t.mini_debuginfo
# Drop the full debug info from the original binary.
OpenPOWER on IntegriCloud