From 2e8442e6ec42ad8027fbf3111b3eb3d8f775cf09 Mon Sep 17 00:00:00 2001 From: Job Bautista Date: Thu, 5 Jan 2023 13:12:29 +0800 Subject: 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. --- config/expandlibs_exec.py | 1 + 1 file changed, 1 insertion(+) (limited to 'config') 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'), ] -- cgit v1.2.3