Open Bug 837445 Opened 11 years ago Updated 2 years ago

GCC >= 4.8 bypasses checks for busted debugging with --gc-sections

Categories

(Firefox Build System :: General, defect)

All
Linux
defect

Tracking

(Not tracked)

People

(Reporter: froydnj, Unassigned)

Details

Bug 670659 added a check to see whether --gc-sections harms the debugging experience.  The check relies on the presence of the .debug_ranges section in the compiled code.  However, it appears that -g with GCC 4.8 doesn't even produce .debug_ranges, but .debug_aranges, which I presume is more efficient.  The check should be made more robust.

(It turns out too that older versions of binutils don't necessarily understand the debugging output by newer versions of GCC, which can neuter the check, but I think we can leave that as caveat user, since the distros should be distributing compatible versions of everything.)
Product: Core → Firefox Build System
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.