[LLDB] Fix minidebuginfo-set-and-hit-breakpoint.test for arm 32-bit
authorMuhammad Omair Javaid <omair.javaid@linaro.org>
Wed, 13 May 2020 02:15:10 +0000 (07:15 +0500)
committerMuhammad Omair Javaid <omair.javaid@linaro.org>
Wed, 13 May 2020 02:17:40 +0000 (07:17 +0500)
This patch fixes minidebuginfo-set-and-hit-breakpoint.test for arm-linux
targets. 32-bit elf executables use .rel.dyn and 64-bit uses .rela.dyn for
relocation entries for dynamic symbols.

lldb/test/Shell/ObjectFile/ELF/minidebuginfo-set-and-hit-breakpoint.test

index 84c69be..9507c5d 100644 (file)
@@ -41,7 +41,7 @@
 # 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: llvm-objcopy --remove-section=.rela.plt --remove-section=.rela.dyn --remove-section=.rel.plt --remove-section=.rel.dyn \
 # RUN:   --remove-section=.gnu.version --remove-section=.gnu.hash --remove-section=.hash --remove-section=.dynsym %t.mini_debuginfo
 
 # Drop the full debug info from the original binary.