-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
moz_create_arena_with_params dynamic load error #35
Comments
no .so have this impl
|
In working environment (aarch64 firefox-esr on debian on crostini on chromebook) files
all files stripped, so couldn't check how moz_create_arena_with_params live. |
built here, but not linked?
|
diff --git a/build/gecko_templates.mozbuild b/build/gecko_templates.mozbuild
index 51aae5b870..f8d359f35f 100644
--- a/build/gecko_templates.mozbuild
+++ b/build/gecko_templates.mozbuild
@@ -41,7 +41,8 @@ def GeckoBinary(linkage='dependent', mozglue=None):
USE_LIBS += ['mozglue']
DEFINES['MOZ_HAS_MOZGLUE'] = True
if CONFIG['MOZ_GLUE_IN_PROGRAM'] and CONFIG['CC_TYPE'] in ('clang', 'gcc'):
- LDFLAGS += ['-rdynamic']
+ #LDFLAGS += ['-rdynamic']
+ pass
elif mozglue == 'library':
LIBRARY_DEFINES['MOZ_HAS_MOZGLUE'] = True
if not CONFIG['MOZ_GLUE_IN_PROGRAM']: |
diff --git a/build/gecko_templates.mozbuild b/build/gecko_templates.mozbuild
index 51aae5b870..5f0db3acdf 100644
--- a/build/gecko_templates.mozbuild
+++ b/build/gecko_templates.mozbuild
@@ -41,7 +41,9 @@ def GeckoBinary(linkage='dependent', mozglue=None):
USE_LIBS += ['mozglue']
DEFINES['MOZ_HAS_MOZGLUE'] = True
if CONFIG['MOZ_GLUE_IN_PROGRAM'] and CONFIG['CC_TYPE'] in ('clang', 'gcc'):
- LDFLAGS += ['-rdynamic']
+ #LDFLAGS += ['-rdynamic']
+ LDFLAGS += ['-Wl,--export-all-symbols']
+ pass
elif mozglue == 'library':
LIBRARY_DEFINES['MOZ_HAS_MOZGLUE'] = True
if not CONFIG['MOZ_GLUE_IN_PROGRAM']: this didn't help
|
currently the option passes https://gcc.gnu.org/onlinedocs/gcc-9.1.0/gcc/Link-Options.html#index-rdynamic |
elfhack is doubtful too. https://searchfox.org/mozilla-esr102/source/build/unix/elfhack/moz.build |
This change fixed this! diff --git a/build/gecko_templates.mozbuild b/build/gecko_templates.mozbuild
index 51aae5b870..b27bc35967 100644
--- a/build/gecko_templates.mozbuild
+++ b/build/gecko_templates.mozbuild
@@ -41,7 +41,9 @@ def GeckoBinary(linkage='dependent', mozglue=None):
USE_LIBS += ['mozglue']
DEFINES['MOZ_HAS_MOZGLUE'] = True
if CONFIG['MOZ_GLUE_IN_PROGRAM'] and CONFIG['CC_TYPE'] in ('clang', 'gcc'):
- LDFLAGS += ['-rdynamic']
+ #LDFLAGS += ['-rdynamic']
+ LDFLAGS += ['-Wl,-export-dynamic']
+ pass
elif mozglue == 'library':
LIBRARY_DEFINES['MOZ_HAS_MOZGLUE'] = True
if not CONFIG['MOZ_GLUE_IN_PROGRAM']: next failure...
|
We should use this implementation
from mozjemalloc.h
The text was updated successfully, but these errors were encountered: