Changeset 0c34633


Ignore:
Timestamp:
07/19/2024 09:36:24 AM (2 months ago)
Author:
Xi Ruoyao <xry111@…>
Branches:
12.2, lazarus, trunk, xry111/for-12.3, xry111/spidermonkey128
Children:
c025978
Parents:
9b5f4a7
git-author:
Xi Ruoyao <xry111@…> (07/19/2024 09:29:36 AM)
git-committer:
Xi Ruoyao <xry111@…> (07/19/2024 09:36:24 AM)
Message:

firefox, thunderbird: Remove ELF hack customization

Now --enable-elf-hack=relr is the default, and it just effectively does
the same thing we'd customized.

With a firefox 128.0 build w/o the customization, for libxul.so:

Relocation section '.relr.dyn' at offset 0x3a940 contains 10777 entries
which relocate 431628 locations

So the space save is 431628 * 24 - 10777 * 8 = 10272856 bytes, matching
our expectation.

Also remove a highly outdated comment about gold.

Location:
xsoft
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • xsoft/graphweb/firefox.xml

    r9b5f4a7 r0c34633  
    227227ac_add_options --with-system-webp
    228228
    229 # Unlike with thunderbird, although using the gold linker can
    230 # save four megabytes in the installed file it does not make
    231 # the build faster.
    232 
    233229# The libdav1d library (av1 decoder) requires nasm. Uncomment this
    234230# if nasm has not been installed. Do not uncomment this if you have
     
    247243# faster. Comment this if you need to run a debugger.
    248244ac_add_options --disable-debug-symbols
    249 <!-- With Firefox ESR 128 we'd replace the following part with
    250 "- -enable-elf-hack=relr", or remove it if relr becomes the default. -->
    251 # The elf-hack is reported to cause failed installs (after successful builds)
    252 # on some machines. It is supposed to improve startup time and it shrinks
    253 # libxul.so by a few MB.  With recent Binutils releases the linker already
    254 # supports a much safer and generic way for this.
    255 ac_add_options --disable-elf-hack
    256 export LDFLAGS="$LDFLAGS -Wl,-z,pack-relative-relocs"
    257245
    258246# The BLFS editors recommend not changing anything below this line:
  • xsoft/other/thunderbird.xml

    r9b5f4a7 r0c34633  
    205205ac_add_options --with-system-nss
    206206ac_add_options --with-system-webp
    207 <!-- With Thunderbird ESR 128 we'd replace the following part with
    208 "- -enable-elf-hack=relr", or remove it if relr becomes the default. -->
    209 # on some machines. It is supposed to improve startup time and it shrinks
    210 # libxul.so by a few MB.  With recent Binutils releases the linker already
    211 # supports a much safer and generic way for this.
    212 ac_add_options --disable-elf-hack
    213 export LDFLAGS="$LDFLAGS -Wl,-z,pack-relative-relocs"
    214207
    215208# The BLFS editors recommend not changing anything below this line:
Note: See TracChangeset for help on using the changeset viewer.