summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorJob Bautista <jobbautista9@protonmail.com>2023-01-05 13:12:29 +0800
committerJob Bautista <jobbautista9@protonmail.com>2023-01-05 13:12:29 +0800
commit2e8442e6ec42ad8027fbf3111b3eb3d8f775cf09 (patch)
tree0d23d06693a6bda578516c65c35f2c4779f2b319 /config
parent61b688198ab481187830e9b3eb2e1b8d9afdec14 (diff)
downloaduxp-2e8442e6ec42ad8027fbf3111b3eb3d8f775cf09.tar.gz
Issue #2079 - Fix linking libxul on *nix when using a linker other than bfd.
Don't mark the .kPStaticModules section as relro for bfd, as the linkers on Windows and Mac don't do this anyway. Add a section insert of .kPStaticModules to config/expandlibs_exec.py, which seems to be the primary cause of linking bustage on gold, lld, and mold.
Diffstat (limited to 'config')
-rw-r--r--config/expandlibs_exec.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/config/expandlibs_exec.py b/config/expandlibs_exec.py
index c053430229..fe9a7f6ebb 100644
--- a/config/expandlibs_exec.py
+++ b/config/expandlibs_exec.py
@@ -45,6 +45,7 @@ SECTION_INSERT_BEFORE = [
('.text', '.fini'),
('.rodata', '.rodata1'),
('.data.rel.ro', '.dynamic'),
+ ('.kPStaticModules', '.data.rel.ro'),
('.data', '.data1'),
]