Open Bug 1516842 Opened 2 years ago Updated 2 years ago

disable -fdata-sections and -ffunction-sections for LTO builds


(Firefox Build System :: General, enhancement)

66 Branch
Not set


(Not tracked)



(Reporter: jh, Unassigned)


User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:66.0) Gecko/20100101 Firefox/66.0

Steps to reproduce:

-fdata-sections and -ffunction-sections was added to enable unreachable code and identical code folding in linker. They however have additional overhead by extra padding at the section boundary and link-time overhead.

With -fno-lto these save about 8MB of binary for Clang build and 5MB for GCC build. With -flto I get only small size increase.

with sections
with no sections
Component: Untriaged → General
Product: Firefox → Firefox Build System

Per conversation with :kmoir, I'm going through untriaged bugs in her components and marking the ones which look to be enhancements/tasks with the enhancement severity to get them out of the triage queue.

If this incorrect, please remove the tag.

Severity: normal → enhancement
You need to log in before you can comment on or make changes to this bug.