Commit Graph

399 Commits

Author SHA1 Message Date
Mike Hommey
42f57b6138 Bug 1043802 - Remove TOOLS_DIRS and TEST_TOOLS_DIRS. r=gps 2014-07-29 08:55:55 +09:00
Mike Hommey
2a08f131e0 Bug 1043344 - Move libraries and programs build to the compile tier. r=gps 2014-07-25 07:14:40 +09:00
Mike Hommey
544a87499f Bug 1043351 - Build ShowSSEConfig as a C++ unit test after it was forgotten in bug 894941 and move linker tests to avoid conflicts. r=mshal
--HG--
rename : mozglue/tests/Makefile.in => mozglue/linker/tests/Makefile.in
rename : mozglue/tests/TestZip.cpp => mozglue/linker/tests/TestZip.cpp
rename : mozglue/tests/moz.build => mozglue/linker/tests/moz.build
rename : mozglue/tests/no_central_dir.zip => mozglue/linker/tests/no_central_dir.zip
rename : mozglue/tests/test.zip => mozglue/linker/tests/test.zip
2014-07-25 07:14:21 +09:00
Jeff Walden
6cfb85995e Bug 1037100 - Remove all use of ScopedDeleteArray from mozglue/. r=glandium
--HG--
extra : rebase_source : dbc49be874fd57130f33584892589c180c7d1128
2014-07-21 18:14:11 -04:00
Mike Hommey
4fa70124f4 Bug 1036286 - Make sure libraries loaded by faulty.lib use its own sigaction. r=nfroyd
Android L added a libsigchain library it LD_PRELOADs. That library exposes
a different sigaction than libc's. It's used for ART.

faulty.lib gets its sigaction from libsigchain, but after bug 874708, the
libraries it loads simply use libc's sigaction, assuming it would be the
hooked one. In turn, this means libraries loaded by faulty.lib may
override faulty.lib's handler, which is definitely not the intent.

This essentially restores some of the code that bug 874708 removed.

An alternative fix would be to add support for LD_PRELOAD, but that has more
implications and feels more risky. This could be done, if necessary, as a
followup.
2014-07-24 13:43:56 +09:00
Mike Hommey
171507509c Bug 1036894 part 9 - Replace all EXTRA_DSO_LDOPTS, SHARED_LIBRARY_LIBS and LIBS with EXTRA_LIBS, OS_LIBS or OS_LDFLAGS, appropriately. r=gps
OS_LIBS for libraries that are not part of the gecko tree, EXTRA_LIBS for
libraries, such as NSPR, that are in the tree, but are not handled by
moz.build just yet. Those EXTRA_LIBS may also come from a system library.
However, in cases where the expanded variables are always empty for the
in-tree case, OS_LIBS is used (as for, e.g. MOZ_ZLIB_LIBS). OS_LDFLAGS is
used exclusively for non-library linker flags.

Always pass EXTRA_LIBS before OS_LIBS on linker command lines.

Forbid EXTRA_DSO_LDOPTS, SHARED_LIBRARY_LIBS and LIBS in Makefiles.
2014-07-23 13:31:02 +09:00
Mike Hommey
5659a611dd Bug 1036894 part 8 - Move most in-tree library linkage information to moz.build, as USE_LIBS. r=gps 2014-07-23 13:30:52 +09:00
Mike Hommey
5c09d7ae19 Bug 1036894 part 7 - Move HOST_LIBS to moz.build, as HOST_USE_LIBS. r=gps 2014-07-23 13:29:50 +09:00
Mike Hommey
bc97b68005 Bug 1036894 part 1 - Move MAKE_FRAMEWORK, SDK_LIBRARY, SHARED_LIBRARY_NAME and STATIC_LIBRARY_NAME to moz.build. r=gps
At the same time, make the Library data more useful in the build frontend.
2014-07-23 13:29:09 +09:00
Nicholas Nethercote
ab815d0c3b Bug 1036789 - Convert the third quarter of MFBT to Gecko style. r=Ms2ger.
--HG--
extra : rebase_source : 668cd394806203ddfa34bd4f226335ff26c846b5
2014-07-10 19:10:17 -07:00
Ehsan Akhgari
777f5daec1 Bug 1036235 - Do not use __asan_default_options with clang-cl because it is not supported yet; r=decoder 2014-07-09 15:16:55 -04:00
Jeff Walden
d17e05914e Bug 953296 - Convert trivial ScopedDelete{Ptr,Array} uses to UniquePtr in mozglue/linker/. (More remain, but they're less trivial to change.) r=glandium
--HG--
extra : rebase_source : 7af7ff2daa70ff3aedaac91d3898bcd90a402162
2013-12-30 13:34:54 -06:00
Benoit Jacob
9f5549e2d3 Bug 1008254 - Allow Nuwa's global sAllThreads list to be non-empty on exit, to green a near-permanent orange on B2G mochitest-9 - r=khuey 2014-07-02 16:40:29 -04:00
David Major
670972a08a Bug 1023239 - Block crashy builds of V-Bates. r=bsmedberg
--HG--
extra : rebase_source : 5b0d32f84ddcea375736777270f99af4e63a0513
2014-07-01 09:33:43 +12:00
Patrick Wang (Chih-Kai Wang)
b2f5d9c01e Bug 1026864: prevent malloc from calling wrapped pthread_mutex_lock and get rid of LibcAllocator. r=cyu,r=glandium,r=khuey 2014-06-25 10:44:58 +08:00
Jed Davis
d580b2275f Bug 1024805 - Use TaggedAnonymousMemory for Nuwa thread stacks. r=khuey
Bonus fixes: make the guard page PROT_NONE instead of PROT_READ,
and correct the stack bounds passed to pthread_attr_setstack.
2014-06-18 17:41:00 +02:00
Birunthan Mohanathas
c910458886 Bug 1016240 - Exterminate CR+LF line endings. r=briansmith,cpearce,ehsan,gavin 2014-06-18 17:56:02 -07:00
Mike Hommey
b75f0f40ef Bug 1024248 - Properly tag linker error/warnings in logcat. r=nfroyd 2014-06-13 08:45:58 +09:00
Patrick Wang (Chih-Kai Wang)
fdae8a7b61 Bug 999323: use an extra thread to free stack of a exit thread in Nuwa. r=cyu,r=khuey 2014-06-10 16:02:45 +08:00
Jim Chen
3ea233cd44 Bug 992357 - b. Add array support stubs; r=blassey 2014-05-16 18:25:29 -04:00
Jim Chen
b415d0cc0f Bug 992359 - b. Add skeletal NativeJSObject.toBundle; r=blassey 2014-05-12 12:50:46 -04:00
Jacek Caban
5c0b1985e0 Bug 973138 - Fixed goto crossing variable declaration (fixes GCC compilation).
--HG--
extra : rebase_source : 8b488731cb06cab3fc1e74e66f88046583e95fc2
2014-05-12 11:01:53 +02:00
David Major
b4d5ee3b96 Bug 988311: Blocklist rf-firefox-22.dll. r=bsmedberg
--HG--
extra : rebase_source : 2729d41ff87bb92220e667ec43ad8f4a0273e1b7
2014-05-08 10:18:17 +12:00
Robert O'Callahan
4c2b59d379 Bug 1006248. Part 1: Add MOZ_EXPORT in various places. r=glandium
--HG--
extra : rebase_source : cfe209a412cae28d405eae413415cebb6959072a
2014-05-06 17:26:46 +12:00
David Major
0654bbf547 Bug 1002748: Blocklist libinject.dll. r=bsmedberg
--HG--
extra : rebase_source : 09e8355ea54c81d8e82b7a01a6ccabf212fa814f
2014-05-07 09:59:20 +12:00
Ehsan Akhgari
ef0b7d19aa Bug 1004564 - Move AtomicRefCounted to mozilla::external and outlaw it in Gecko code; r=froydnj 2014-05-01 14:33:20 -04:00
David Major
4dbb445190 Bug 973138: Block DLLs that match the MovieMode pattern. r=bsmedberg 2014-04-15 11:40:42 +12:00
Wes Kocher
794324adbd Merge m-c to b2g-inbound 2014-04-28 16:26:34 -07:00
Mike Hommey
ca98a33b76 Bug 1001703 - Remove memswap wrapping. r=snorp 2014-04-29 04:12:27 +09:00
James Willcox
f1ad9a5fa7 Bug 966154 - Don't use __fork, it's gone in newer bionic r=glandium
--HG--
extra : rebase_source : d9658b67bae73031b2a8212764a33bff8f0e3bb7
2014-04-28 10:21:22 -05:00
Gabriele Svelto
8b56859745 Bug 982569 - Don't hard-code the page size. r=khuey 2014-04-21 19:32:48 +02:00
David Major
3d692abc6d Bug 970362 - Block F-Secure on Windows XP. r=bsmedberg 2014-04-13 14:18:03 -04:00
Jim Chen
dc221bd1ef Bug 984458 - f. Add NativeJSObject opt getters; r=blassey 2014-04-01 15:16:56 -04:00
Jim Chen
921865814f Bug 984458 - e. Add NativeJSObject object getter; r=blassey 2014-04-01 15:16:55 -04:00
Jim Chen
0d527134c9 Bug 984458 - d. Add NativeJSObject property getters; r=blassey 2014-04-01 15:16:55 -04:00
Jim Chen
0583c099c7 Bug 984458 - c. Add skeletal NativeJSObject implementation; r=blassey 2014-04-01 15:16:54 -04:00
Jim Chen
ba0574bbae Bug 984458 - b. Add threading support to NativeJSContainer; r=blassey 2014-04-01 15:16:53 -04:00
Jim Chen
c59d025ee0 Bug 984458 - a. Add NativeJSContainer implementation; r=blassey 2014-04-01 15:16:52 -04:00
Nathan Froyd
9f594adf92 Bug 988499 - terminate #warning string in Nuwa.cpp; r=khuey; f=tzimmerman DONTBUILD because #warnings don't need build and tests 2014-03-24 13:35:43 -04:00
Douglas Crosher
dbac01642e Bug 944612 - Guard the ElfLoader sigaction wrapper against the SIGSEGV handler not being installed. r=glandium 2014-03-20 12:35:15 +11:00
Thomas Zimmermann
84569a9ecf Bug 979913: Remove unused variables, r=khuey 2014-03-14 11:23:51 +01:00
Thomas Zimmermann
c46b56867b Bug 979913: Conditionally define PAGE_SIZE, r=khuey
With this patch the PAGE_SIZE value from the system is used if
possible. If page size is not defined by the system, it is set
to 4096 bytes and a warning is emitted. PAGE_ALIGN_MASK is now
derived from PAGE_SIZE. With these changes, the code should be
more robust on systems with non-4KiB page size.
2014-03-14 11:23:51 +01:00
Thomas Zimmermann
f6a1748480 Bug 979913: Fix GCC warning about undeclared function |snprintf|, r=khuey 2014-03-14 11:23:50 +01:00
Carsten "Tomcat" Book
930c8a02f3 Backed out changeset b2e50a5b5eb3 (bug 979913) on request for pushing wrong version of the patch on a CLOSED TREE 2014-03-14 09:40:38 +01:00
Carsten "Tomcat" Book
6d4b8ce485 Backed out changeset 3e9182f7e25d (bug 979913) 2014-03-14 09:39:35 +01:00
Carsten "Tomcat" Book
e225b03d03 Backed out changeset 79ee6fda8e65 (bug 979913) 2014-03-14 09:39:26 +01:00
Thomas Zimmermann
f083d4a79c Bug 979913: Remove unused variables, r=khuey 2014-03-14 09:24:05 +01:00
Thomas Zimmermann
2ebcbec4e2 Bug 979913: Conditionally define PAGE_SIZE, r=khuey
With this patch the PAGE_SIZE value from the system is used if
possible. The code still assumes that the PAGE_SIZE is 4096, but
emits a warning if the actual value differs. If page size is not
defined by the system, it is set to 4096 bytes and a warning is
emitted as well.
2014-03-14 09:24:04 +01:00
Thomas Zimmermann
306ff33f65 Bug 979913: Fix GCC warning about undeclared function |snprintf|, r=khuey 2014-03-14 09:24:04 +01:00
Jed Davis
8518d7e52b Bug 977859 - Drop uid 0 in all content processes immediately after fork. r=bent r=kang
Now all regular child processes, including preallocated, are deprivileged.
Only Nuwa needs uid 0, because each of its children has a different uid/gid.
2014-03-12 15:48:15 -07:00