Merge "Fix mini_debug_info stripping when no symbols should be kept."
am: a77e2acd6b
Change-Id: Ia3d4fcec1a48f0c573d0c413d4ffc90eb8d3cac1
This commit is contained in:
commit
b9ecf4da4d
1 changed files with 1 additions and 0 deletions
|
@ -1849,6 +1849,7 @@ if $(PRIVATE_STRIP) --strip-all -R .comment $< -o $@; then \
|
|||
$(PRIVATE_NM) -D $< --format=posix --defined-only | awk '{ print $$1 }' | sort >$@.dynsyms && \
|
||||
$(PRIVATE_NM) $< --format=posix --defined-only | awk '{ if ($$2 == "T" || $$2 == "t" || $$2 == "D") print $$1 }' | sort >$@.funcsyms && \
|
||||
comm -13 $@.dynsyms $@.funcsyms >$@.keep_symbols && \
|
||||
echo >>$@.keep_symbols && \
|
||||
$(PRIVATE_OBJCOPY) --rename-section .debug_frame=saved_debug_frame $@.debug $@.mini_debuginfo && \
|
||||
$(PRIVATE_OBJCOPY) -S --remove-section .gdb_index --remove-section .comment --keep-symbols=$@.keep_symbols $@.mini_debuginfo && \
|
||||
$(PRIVATE_OBJCOPY) --rename-section saved_debug_frame=.debug_frame $@.mini_debuginfo && \
|
||||
|
|
Loading…
Reference in a new issue