toolkit/library/StaticXULComponents.ld
author Mike Hommey <mh+mozilla@glandium.org>
Tue, 26 Jun 2018 14:40:51 +0900
changeset 423859 7839040f0d428201a5d9afed324b7763ed555024
parent 156998 1eb6ceed2cdab03108bd5de27dfab737e5093822
permissions -rw-r--r--
Bug 1471132 - Change how static xpcom components are linked. r=froydnj Overall, this makes the whole setup less fragile, and make it work with LTO in more situations.

SECTIONS {
  .data.rel.ro : {
    PROVIDE_HIDDEN(__start_kPStaticModules = .);
    *(kPStaticModules)
    PROVIDE_HIDDEN(__stop_kPStaticModules = .);
  }
}