New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 742697 link

Starred by 1 user

Issue metadata

Status: Archived
Owner:
Last visit > 30 days ago
Closed: Aug 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Chrome
Pri: 2
Type: Bug



Sign in to add a comment

Debug symbol is missing when enabling LTO

Project Member Reported by cheyuw@google.com, Jul 14 2017

Issue description

UserAgent: 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:
 
Cc: rspangler@chromium.org cheyuw@google.com drinkcat@chromium.org vpalatin@chromium.org
Components: OS>Firmware>EC
Labels: -OS-Linux OS-Chrome
Status: Available (was: Unconfirmed)
Project Member

Comment 2 by sheriffbot@chromium.org, Jul 14 2017

Labels: Hotlist-Google
Project Member

Comment 3 by bugdroid1@chromium.org, 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

Comment 4 by cheyuw@google.com, Aug 8 2017

Owner: cheyuw@google.com
Status: Fixed (was: Available)

Comment 5 by dchan@chromium.org, Jan 22 2018

Status: Archived (was: Fixed)

Sign in to add a comment