Kai-Zhen Li
9401481dd6
Bug 1104649 - Always cast the string for putenv. r=glandium
2014-11-26 20:26:56 +08:00
Eugen Sawin
de460cbc39
Bug 1101583 - Remove unused variables. r=glandium
2014-11-19 17:17:28 +01:00
Mike Hommey
d286e091a0
Bug 1101070 - Add missing OSX build flag for the new replace-malloc symbol. r=njn,r=khuey
...
Bug 818922 added a new replace-malloc symbol that the OSX linker tricks need
to know about.
2014-11-19 09:46:47 +09:00
Cervantes Yu
86d8d5884b
Bug 1091533, Part 2: Implement NuwaAddThreadConstructor() to allow a thread to perform a custom action after being recreated in the content process. r=khuey,tlee
2014-11-06 19:34:03 +08:00
Cervantes Yu
160428a1e3
Bug 1091533, Part 1: Don't wrap tgkill() on the Nuwa process. r=BenWa
2014-11-06 19:10:52 +08:00
Chris Pearce
f3af16c459
Bug 1088488 - Add GMPLoader interface to encapsulate loading GMPs, pass that to XRE_InitChildProcess. r=jesup,r=bsmedberg,r=glandium
2014-11-14 21:26:24 +13:00
Nick Alexander
430b02189b
Bug 976699 - Place architecture specific assets in assets/$(ANDROID_CPU_ARCH). r=glandium
2014-11-03 20:04:20 -08:00
Mike Hommey
47c853314f
Bug 1077148 part 4 - Add and use new moz.build templates for Gecko programs and libraries. r=gps
...
There are, sadly, many combinations of linkage in use throughout the tree.
The main differentiator, though, is between program/libraries related to
Gecko or not. Kind of. Some need mozglue, some don't. Some need dependent
linkage, some standalone.
Anyways, these new templates remove the need to manually define the
right dependencies against xpcomglue, nspr, mozalloc and mozglue
in most cases.
Places that build programs and were resetting MOZ_GLUE_PROGRAM_LDFLAGS
or that build libraries and were resetting MOZ_GLUE_LDFLAGS can now
just not use those Gecko-specific templates.
2014-10-30 13:06:12 +09:00
Mike Hommey
44b304224a
Bug 1077148 part 1 - Define mozcrt in moz.build. r=gps
...
--HG--
rename : mozglue/build/Makefile.in => mozglue/crt/Makefile.in
rename : mozglue/build/fixcrt.py => mozglue/crt/fixcrt.py
2014-10-30 13:05:50 +09:00
Mike Hommey
7a532e200f
Bug 1090668 - Use elf.h instead of linux/elf.h when building with android API version >= 21. r=nfroyd
2014-10-29 13:37:00 +09:00
Mike Hommey
3188e8d7ab
Bug 1059797 - Pre-allocate zlib inflate buffers in faulty.lib. r=froydnj
...
Original patch from James Willcox <snorp@snorp.net>
2014-10-28 16:45:17 +09:00
Mike Hommey
e25908f6c5
Bug 1083686 - Tool to capture and reproduce Firefox's memory allocations. r=njn,r=mshal
...
--HG--
rename : mozglue/build/Makefile.in => mozglue/build/replace_malloc.mk
2014-10-24 13:08:01 +09:00
Mike Hommey
c9456870c0
Bug 1082524 - Do not deref null pointers in link_map. r=nfroyd
2014-10-18 09:27:55 +09:00
Mike Hommey
984856dd8c
Fixup for bug 1081034 - Add missing #ifdef to avoid build failure on desktop linux. r=me,npotb,DONTBUILD
2014-10-17 14:09:17 +09:00
Mike Hommey
b79a0595df
bug 1081034 part 4 - Remove wrapping for weak libc symbols. r=nfroyd
...
This effectively backs out bug 791419, a part of bug 850332, and bug 1001703.
2014-10-16 09:20:16 +09:00
Mike Hommey
eb75074fdb
Bug 1081034 part 3 - Resolve libc symbols with our linker. r=nfroyd
...
This allows to resolve weak symbols from some Android device's libc that
dlsym() won't. This is effectively an alternative fix to bug 791419, without
requiring wrapping symbols.
2014-10-16 09:20:14 +09:00
Mike Hommey
9c53800a82
Bug 1081034 part 2 - Move initialization of self_elf to its own separate class. r=nfroyd
...
The new class is kind of like SystemElf, but using our linker's own symbol
resolution. This also adds some initialization from ELF program headers that
weren't done previously for self_elf, as well as registration as for CustomElf
instances.
2014-10-16 09:20:06 +09:00
Mike Hommey
85b47df0cb
Bug 1081034 part 1 - Move GetSymbolPtr, Contains and FindExidx from CustomElf to BaseElf. r=nfroyd
2014-10-16 09:19:46 +09:00
Mike Hommey
84f2c13cef
Bug 1078837 part 2 - Replace IsSystemElf/reinterpret_cast dance with better API. r=nfroyd
2014-10-16 09:19:45 +09:00
Mike Hommey
c39fcc8944
Bug 1078837 part 1 - Move CustomElf::mappable to BaseElf. r=nfroyd
2014-10-16 09:19:45 +09:00
Mike Hommey
eb89afceec
Bug 1083020 - Add a (dummy) stats method to all LibHandles. r=nfroyd
...
While here, avoid doing anything if debug logging is disabled.
2014-10-16 09:19:40 +09:00
Mike Hommey
f431c6c5b5
Bug 1082524 - Initialize link_map. r=nfroyd
...
When a library fails to load with CustomElf before it's registered, the
unregistration that does happen in CustomElf's destructor uses link_map,
so it needs to be initialized.
2014-10-15 14:46:09 +09:00
Mike Hommey
35f933f139
Bug 1080342 - Change how the symbols the flash plugin uses are hooked on Android. r=snorp
...
With bug 1077366, the linker makes the library containing it a fake
LD_PRELOAD. As a consequence, instead of, in the linker itself,
explicitely special-casing the symbols that disappeared in Android 4.4
that the flash plugin uses, it is now possible to use normal symbol
resolution to stubs defined separately in libmozglue.
2014-10-14 07:18:01 +09:00
Mike Hommey
b77d0f1d19
Bug 1077366 - Remove most symbol wrapping from Android builds. r=nfroyd
...
Since essentially everything is linked to libmozglue and libmozglue takes
precedence in symbol resolution in our dynamic linker, there is no need
to wrap most symbols. PR_GetEnv/PR_SetEnv still needs wrapping because
there's no other way to actually wrap the calls from NSPR itself and NSS,
as well as the symbols wrapped because our dynamic linker can't find them
in system libraries on some devices because they're weak.
2014-10-14 07:17:13 +09:00
Mike Hommey
464da0f9c2
Bug 1077384
- Make libmozglue a pseudo-LD_PRELOAD on android. r=nfroyd
...
In order to avoid adding more dlsym overhead than there already is, resolve
symbols directly in the library containing the linker. (GetSymbolPtr is
essentially free ; dlsym makes the system linker compule a ElfHash itself,
and that's quite expensive to do on all symbols)
This also paves the way for direct symbol resolution in all system libraries.
2014-10-07 07:42:18 +09:00
Mike Hommey
2466a02679
Bug 1077135 - Ensure logging initialization for early log messages in the linker. r=nfroyd
2014-10-04 10:31:49 +09:00
Mike Hommey
5331094bbb
Bug 1077135 - Initialize ElfLoader::DebuggerHelper::firstAdded. r=nfroyd
2014-10-04 10:31:38 +09:00
Jim Chen
f6e00ce7f5
Bug 888482 - Send event to set layer client; r=snorp
2014-09-30 18:20:58 -04:00
Ryan VanderMeulen
240ed29614
Merge m-c to inbound. a=merge
...
CLOSED TREE
2014-09-24 16:08:33 -04:00
Jim Chen
ead154121a
Bug 1066760 - Redirect mozalloc_abort through Java exception handling; r=snorp
2014-09-24 14:12:54 -04:00
Jim Chen
f3c570c80b
Bug 1066760 - Add base address and fall back to system dladdr in __wrap_dladdr; r=froydnj
2014-09-24 14:12:54 -04:00
Michael Comella
6fe6f316b3
Bug 915312 - Followup: Replace NULL with nullptr. r=glandium
2014-09-23 13:47:35 -07:00
David Major
a18d039d8a
Bug 1046382 - Blocklist dtwxsvc.dll. r=bsmedberg
...
--HG--
extra : rebase_source : 007867f3df7090bf67dcadeeac6f4ec422e16ac5
2014-09-18 14:27:11 +12:00
Jim Chen
905fc241fa
Bug 1063120 - Add synchronous method to notify Gecko observer; r=snorp
2014-09-11 18:31:32 -04:00
Mike Hommey
4b99580194
Bug 1059113 - Use templates for shared libraries and frameworks. r=gps
...
Also force to use the existing template for XPCOM components.
2014-09-04 09:04:45 +09:00
Mike Hommey
0060683747
Bug 1059090 - Don't require SOURCES to be set for CPP_UNIT_TESTS and SIMPLE_PROGRAMS. r=mshal
2014-09-03 14:16:37 +09:00
Mike Hommey
ed70c5f377
Bug 1041941 - Use templates for programs, simple programs, libraries and C++ unit tests. r=gps
2014-09-03 14:10:54 +09:00
Jim Chen
8117b170c6
Bug 1056941 - Remove extract libs parameter; r=glandium
2014-08-26 15:08:00 -04:00
Bill McCloskey
d52ab46335
Bug 1045847 - Initialize sProcessType really, really early (r=khuey)
2014-08-08 17:52:12 -07:00
Kartikaya Gupta
c604d4ad5a
Bug 1049136 - Add native-code awareness of the Java UI thread so we can do thread assertions. r=snorp
2014-08-08 18:15:38 -04:00
Kartikaya Gupta
80b3b6bf72
Bug 1049136 - Hook up touch event handling for apz-fennec. r=wesj,snorp
2014-08-08 18:15:37 -04:00
Kartikaya Gupta
96362eb56b
Bug 1046344 - Unbitrot and rearrange the old APZ glue code in Fennec. r=snorp
2014-08-08 17:42:20 -04:00
Mike Hommey
89777800f9
Bug 1047267 - Move remaining OS_LIBS and EXTRA_LIBS to moz.build. r=gps
...
* * *
Bug 1047267 - To fold with "Move remaining OS_LIBS and EXTRA_LIBS to moz.build"
2014-08-07 14:21:03 +09:00
Mike Hommey
1cf20f37fd
Bug 1036286 - Ensure faulty.lib diverts libc's sigaction instead of a LD_PRELOADed one. r=nfroyd
...
and force-send calls to sigaction from faulty.lib-loaded libraries to the libc.
2014-08-07 02:51:20 +09:00
Mike Hommey
15851645b4
Bug 1036286 - Delay registration of the faulty.lib signal handler until when it's necessary. r=nfroyd
...
It's necessary to delay it because for the second part, we need to call dlopen,
and until recently bionic's linker dead-locked when using dlopen from a static
initializer.
2014-08-07 02:51:03 +09:00
Mike Hommey
1e6fb05108
Bug 1045783 - Move HOST_EXTRA_LIBS to moz.build as HOST_OS_LIBS. r=mshal
2014-08-06 07:26:05 +09:00
Mike Hommey
d9443ec932
Bug 1045783 - Move most OS_LIBS to moz.build and do some related cleanup. r=mshal
2014-08-06 07:25:33 +09:00
Ed Morley
a82632349d
Merge mozilla-central and b2g-inbound
2014-08-05 16:33:22 +01:00
Mike Hommey
8c39460da9
Backout changeset 34235900c3a0 (bug 1036286) because it wasn't the right fix.
2014-08-05 16:07:06 +09:00
Ting-Yu Chou
1e305aa73a
Bug 1038854 - Synchronize mutexes in pthread_cond_wait after recreating threads to avoid race conditions. Parts by Ting-Yu, r=khuey. Parts by Kyle Huey, r=thinker
2014-07-31 10:47:30 +08:00