Debug symbol is missing when enabling LTO |
||||
Issue descriptionUserAgent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.115 Safari/537.36 Steps to reproduce the problem: 1. make BOARD=eve -j 2. arm-none-eabi-objdump -h build/eve/RW/ec.RW.elf What is the expected behavior? There are several debug sections containing important debug information, such as ".debug_loc", ".debug_ranges". What went wrong? Those debug sections are missing. Did this work before? N/A Chrome version: 59.0.3071.115 Channel: stable OS Version: Flash Version:
,
Jul 14 2017
,
Jul 20 2017
The following revision refers to this bug: https://chromium.googlesource.com/chromiumos/platform/ec/+/9078f123949497b917a82899f5dff417f492459f commit 9078f123949497b917a82899f5dff417f492459f Author: Che-yu Wu <cheyuw@google.com> Date: Thu Jul 20 05:10:53 2017 core: Fix missing debug symbol when enabling LTO Add "-g" to "LDFLAGS" for preserving debug symbol when enabling LTO. BUG= chromium:742697 BRANCH=none TEST=make BOARD=eve -j arm-none-eabi-objdump -h build/eve/RW/ec.RW.elf | grep debug_loc 7 .debug_loc 00027bf0 00000000 00000000 0009a549 2**0 Change-Id: I6b2b00846ce71002262a10357fd4dccbe82b6e6f Signed-off-by: Che-yu Wu <cheyuw@google.com> Reviewed-on: https://chromium-review.googlesource.com/575312 Reviewed-by: Nicolas Boichat <drinkcat@chromium.org> [modify] https://crrev.com/9078f123949497b917a82899f5dff417f492459f/Makefile.toolchain
,
Aug 8 2017
,
Jan 22 2018
|
||||
►
Sign in to add a comment |
||||
Comment 1 by drinkcat@chromium.org
, Jul 14 2017Components: OS>Firmware>EC
Labels: -OS-Linux OS-Chrome
Status: Available (was: Unconfirmed)