Temporarily prevent stripping of symbols from binaries to ease debugging

This commit is contained in:
Michael Mueller
2025-04-18 19:11:05 +02:00
parent e91f8b5044
commit ea10dfb143
2 changed files with 2 additions and 2 deletions

View File

@@ -213,7 +213,7 @@ $(TARGET): $(LINK_ITEMS) $(wildcard $(LD_SCRIPTS))
$(MSG_LINK)$(TARGET) $(MSG_LINK)$(TARGET)
$(VERBOSE)libs=$(LIB_CACHE_DIR); $(LD_CMD) -o $@ $(VERBOSE)libs=$(LIB_CACHE_DIR); $(LD_CMD) -o $@
STRIP_TARGET_CMD ?= $(STRIP) -o $@ $< STRIP_TARGET_CMD ?= cp $< $@ #$(STRIP) -o $@ $<
$(TARGET).debug: $(TARGET) $(TARGET).debug: $(TARGET)
$(VERBOSE)$(OBJCOPY) --only-keep-debug $< $@ $(VERBOSE)$(OBJCOPY) --only-keep-debug $< $@

View File

@@ -1151,7 +1151,7 @@ proc build_core_image { modules } {
# create core binary containing the boot modules # create core binary containing the boot modules
set image_elf [run_dir]/[kernel_specific_binary image.elf] set image_elf [run_dir]/[kernel_specific_binary image.elf]
build_core [run_dir]/genode/$core_obj $modules $image_elf [core_link_address] build_core [run_dir]/genode/$core_obj $modules $image_elf [core_link_address]
exec [cross_dev_prefix]strip $image_elf #exec [cross_dev_prefix]strip $image_elf
# Save config part of the image.elf for easy inspection # Save config part of the image.elf for easy inspection
exec cp -f [run_dir]/genode/config [run_dir].config exec cp -f [run_dir]/genode/config [run_dir].config