Mike Hommey
abaa52c443
Bug 882608 - Fix various issues in faulty.lib with incomplete pages and MOZ_LINKER_ONDEMAND=0. r=nfroyd
2013-07-23 07:26:07 +09:00
Mike Hommey
fd44bdf519
Bug 891266 - Allow to enable faulty.lib debug log at runtime. r=nfroyd
2013-07-10 14:12:35 +09:00
Justin Lebar
051c5b560a
Bug 802686 - s/MOZ_NOT_REACHED/MOZ_CRASH/ in Gecko. r=(see below)
...
r=tbsaunde for accessible
r=jmuizelaar for gfx
r=roc for layout
r=glandium for mozglue
r=jduell for netwerk
r=khuey for everything else
This is a mechanical change made with sed. Later patches in this queue
clean up the whitespace errors and so on.
2013-06-28 18:38:30 -07:00
Mike Hommey
071998d656
Bug 886730 - Move a szip.cpp MOZ_ASSERT to a safer place. r=nfroyd
2013-06-27 09:35:49 +09:00
Mike Hommey
fc82c0f523
Bug 886730 - Add and use a MemoryRange class and helper functions for page alignment in faulty.lib. r=nfroyd
2013-06-27 09:35:49 +09:00
Mike Hommey
b340449c73
Bug 886726 - Fix warnings in szip.cpp. r=nfroyd
2013-06-27 09:35:49 +09:00
Mike Hommey
c7c836946d
Bug 886722 - Rename log/debug to LOG/DEBUG_LOG in faulty.lib. r=nfroyd
2013-06-27 09:35:49 +09:00
Mike Hommey
6d626eb6a0
Bug 885336 - Fix various issues with the dl_mmap interface. r=nfroyd
2013-06-27 09:35:48 +09:00
Brian O'Keefe
11bcc1cd9e
Bug 875934 - Move LIBRARY_NAME to moz.build (batch #1 ); r=mshal
...
--HG--
extra : rebase_source : 385d3fd65475ffc18ee44ae088753649470e214b
2013-06-17 15:21:01 -04:00
Julian Seward
bdb61b948e
Bug 882903 - SPS breadkpad unwinder segfaults with on-demand decompression on. r=glandium.
2013-06-14 14:03:25 +02:00
Mike Hommey
7a3c231b71
Bug 874708 - Hook libc's sigaction to avoid system libraries replacing our segfault handler temporarily and restoring it wrongly. r=nfroyd
2013-06-09 09:23:03 +02:00
Mike Hommey
48e758d56b
Bug 875824 - Allow to disable on-demand decompression at runtime. r=sewardj
2013-05-29 16:18:27 +02:00
Mike Shal
5169c0a913
Bug 864774 - Part 2: Move CPPSRCS to moz.build as CPP_SOURCES; r=joey CLOSED TREE
...
From 9e0ba7f425143f545eb6c4b26a9a96b5ade4d8e9 Mon Sep 17 00:00:00 2001
2013-04-23 17:54:15 -04:00
Mike Hommey
5215bd9e2d
Bug 865583 - Use thread-safe ref-counting in the linker. r=nfroyd
2013-05-18 09:53:18 +02:00
Mike Hommey
32f20f1c9f
Bug 864035 - Add an atomic RefCounted and WeakPtr implementation. r=Waldo
2013-05-18 09:52:53 +02:00
Mike Hommey
5d442bca12
Bug 861796 - Fix crash in LibHandle::~LibHandle. r=nfroyd
2013-04-15 18:36:13 +02:00
Mike Hommey
1cb6364a2e
Bug 802240 - Expose an API to mmap the underlying file for a library loaded by faulty.lib. r=nfroyd
2013-04-12 10:23:12 +02:00
Vicamo Yang
f8906b8557
Bug 859830: determine Android API level through android/api-leve.h instead. r=glandium
2013-04-12 13:39:42 +08:00
Mike Hommey
6e05e224dc
Bug 848385 - Avoid recompressing a szip, and (de)compress in-place (but still with a temporary file). r=nfroyd,khuey
2013-04-11 09:37:44 +02:00
Kyle Machulis
72a717a860
Bug 855465 - Add emacs python mode comments to moz.build files; r=gps
2013-04-01 11:36:59 -07:00
Kyle Machulis
43628a7867
Backout for changeset 03452b187c14 (Bug 855465) due to bustage on a CLOSED TREE; r=qdot
2013-03-29 15:12:58 -07:00
Kyle Machulis
334c0800cf
Bug 855465 - Add emacs python mode comments to moz.build files; r=gps
...
--HG--
extra : rebase_source : 004a756492323e1a049586e85b3be5037159df20
2013-03-29 13:56:18 -07:00
Mike Shal
7ecea60097
Bug 844654 - Part 2: Move MODULE to moz.build; rs=gps
2013-03-19 11:47:00 -07:00
Mike Hommey
dfe01093ca
Bug 848770 - Choose the best compression settings automagically for seekable zstreams (szip). r=nfroyd
2013-03-13 15:28:57 +01:00
Mike Hommey
1b682a5cda
Bug 848773 - Add x86 BCJ filter for szip. r=nfroyd,r=ted
2013-03-08 09:32:56 +01:00
Mike Hommey
ce277304e9
Bug 842681 - Refactor the linker Zip code and allow to use an existing memory buffer as a Zip file. r=mwu
2013-03-08 09:24:46 +01:00
Mike Hommey
bc0758344b
Bug 848270 - Various fixups for Android builds on OSX after bug 847479. r=nfroyd
2013-03-06 17:01:56 +01:00
Mike Hommey
8e132042ea
Bug 847479 - Add a dictionary to improve compression rate. r=nfroyd
2013-03-06 07:30:07 +01:00
Mike Hommey
392c3b9d27
Bug 847479 - Add smart filters borrowed from xz-utils to improve SeekableZStream compression rate. r=nfroyd
2013-03-06 07:29:59 +01:00
Mike Hommey
f4e950ccd0
Bug 847479 - Allow to specify a chunk size on szip command line. r=nfroyd
2013-03-06 07:29:51 +01:00
Mike Hommey
813034fd1f
Bug 847479 - Use raw zlib streams when compressing with szip. r=nfroyd
...
And keep compatibility to decompress old streams.
2013-03-06 07:29:41 +01:00
Mike Hommey
db783e83fd
Bug 847479 - Sanity check that szip's compressed output can properly be decompressed. r=nfroyd
2013-03-06 07:29:33 +01:00
Mike Hommey
2768b09d27
Bug 847479 - Add a command line argument to szip to decompress an existing seekable stream. r=nfroyd
2013-03-06 07:29:22 +01:00
Mike Hommey
3506308140
Bug 847479 - Add a helper class for a buffer mapped from a file. r=nfroyd
2013-03-06 07:29:13 +01:00
Mike Hommey
d55975357b
Bug 847479 - Add buffer length information when initializing a SeekableZStream. r=nfroyd
2013-03-06 07:29:05 +01:00
Gregory Szorc
282edab58a
Bug 784841 - Part 18c: Convert /memory, /mfbt, /mozglue; r=ted f=Ms2ger
2013-02-25 12:47:17 -08:00
Kartikaya Gupta
dd7a85d6a7
Bug 837551 - Ignore dynamic section headers of type DT_FLAGS_1. r=glandium
2013-02-04 09:58:54 -05:00
Mike Hommey
9446203c4a
Bug 834459 - Specialize RefCounted template for LibHandle to better allow refcounting during destructor execution. r=nfroyd
2013-01-29 09:35:32 +01:00
Mike Hommey
ccee4c2c0e
Bug 830326 - Get rid of warnings in the custom linker code. r=nfroyd
2013-01-15 10:12:56 +01:00
Mike Hommey
77cfb9f1b0
Bug 830295 - Avoid RefPtr<LibHandle> triggering recursive calls to ~CustomElf, and use it in the linker segfault handler. r=nfroyd
2013-01-15 10:12:36 +01:00
Mike Hommey
90d38c2837
Bug 828894 - Fix possible off-by-one-page in custom linker. r=nfroyd
...
--HG--
extra : rebase_source : 7bdafcec8108b001bf2b817bd2c4b293a0dbee2e
2013-01-11 12:24:31 +01:00
Mike Hommey
5d94d28846
Bug 828301 - Free zlib internal buffers when we're done uncompressing in the custom linker. r=nfroyd
2013-01-10 08:39:07 +01:00
Mike Hommey
aed740d0a0
Bug 826263 - Fix ~_MappableBuffer in the linker on Android. r=nfroyd
2013-01-03 16:46:09 +01:00
Mike Hommey
11eafddbc8
Bug 826178 - Prefix all hexadecimal values with 0x in linker logs. r=nfroyd
2013-01-03 16:45:57 +01:00
Mike Hommey
44a3273ff8
Bug 826173 - Avoid calling close/fclose/unlink with uninitialized values in the linker. r=nfroyd
2013-01-03 16:45:50 +01:00
Mike Hommey
4256e397e3
Bug 825901 - Remove the old linker code. r=blassey
2013-01-03 08:43:26 +01:00
Jim Chen
a59d04549c
Bug 824715 - Correctly calculate next page offset in custom linker; r=glandium
2013-01-01 21:44:04 -05:00
Josh Matthews
f6cc129ce8
Backed out changeset 10b47593c4d7 (bug 824715)
2012-12-28 19:03:50 -05:00
Jim Chen
e4b89b0500
Bug 824715 - Correctly calculate next page offset in custom linker; r=glandium
2012-12-28 15:29:44 -05:00
Mike Hommey
30f25f43e8
Fixup for dl_iterate_phdr after bug 808121. r=me
2012-11-07 16:45:48 +01:00
Mike Hommey
3565792dc7
Bug 808121 - Ensure the pointers we change in the r_debug data are writable, which they aren't with upcoming Android system linker. r=nfroyd
2012-11-07 08:02:53 +01:00
Mike Hommey
05b582cde9
Bug 783331 - Add Phdr pointer and count to dl_iterate_phdr implementation. r=nfroyd
2012-08-29 08:55:57 +02:00
Mike Hommey
70d7c821af
Bug 774032 bonus - Use @DEPTH@ and @relativesrcdir@ in Makefile.in. r=ted
2012-08-04 20:26:44 +02:00
Andrew Quartey
df797e7733
Bug 735615 - Remove AutoClean from mozglue/linkers/Utils.h r=glandium
2012-07-30 14:17:53 -04:00
Mike Hommey
a716e0afd3
Bug 772886 - Avoid failure to mmap some library segments on some armv6 devices. r=nfroyd
2012-07-14 10:54:22 +02:00
Jeff Walden
3b720a666b
Bug 763000 - Remove MOZ_Assert. r=Ms2ger, r=terrence, r=ted
2012-06-07 14:41:11 -07:00
Mike Hommey
c60b51ef30
Bug 735278 - Call destructors in reverse order of initializers in the linker. r=froydnj
2012-06-07 10:41:59 +02:00
Gervase Markham
82ff7027aa
Bug 716478 - update licence to MPL 2.
2012-05-21 12:12:37 +01:00
Mike Hommey
2967371558
Bug 747033 - Implement dl_iterate_phdr in the custom linker. r=froydnj
...
--HG--
rename : mozglue/linker/CustomElf.h => mozglue/linker/Elfxx.h
2012-04-25 09:05:02 +02:00
Mike Hommey
b00b3342a2
Bug 727959 - Ignore 0xffffffff entries the x86 Android NDK puts in .{init,fini}_array. r=tglek
2012-03-14 10:53:21 +01:00
Mike Hommey
b3973a5b27
Bug 734812 - Make the linker error out when text relocations are defined with DF_TEXTREL. r=nfroyd
2012-03-13 09:48:20 +01:00
Mike Hommey
471d20d072
Bug 727959 - Don't error out when missing symbol for PLT relocations is weak. r=nfroyd
2012-03-08 08:29:39 +01:00
Mike Hommey
5773947c34
Fixup for bug 733087. rs=dougt
2012-03-06 09:54:17 +01:00
Jeff Muizelaar
7cbebe89b8
Bug 733087 - Support DT_FLAGS a little bit. r=glandium
2012-03-06 09:28:09 +01:00
Tor Lillqvist
c30de3580b
Bug 731961 - Include cstdio from Mappable.cpp for sprintf. r=glandium
2012-02-07 11:35:00 +02:00
Mike Hommey
bc546e0b47
Bug 729883 - Avoid linker warnings when starting up on Android. r=tglek
2012-02-27 08:19:20 +01:00
Mike Hommey
86098226ec
Bug 729596 - Use ftruncate in szip instead of posix_fallocate. r=taras
2012-02-22 19:42:56 +01:00
Mike Hommey
ca520fa83e
Bug 727960 - When extracting libraries, reuse cached library if it is newer than the apk. r=tglek
2012-02-22 08:12:15 +01:00
Mike Hommey
8c5b3643ce
Bug 686805 part 6 - Add functions to display stats about seekable compressed streams. r=tglek
2012-02-22 08:12:15 +01:00
Mike Hommey
942b661343
Bug 686805 part 4 - Make the linker load libraries with on-demand decompression when they are seekable compressed streams. r=tglek,r=sewardj
2012-02-22 08:12:15 +01:00
Mike Hommey
ee92560165
Bug 686805 part 3 - Tool to generate seekable compressed streams. r=tglek
2012-02-22 08:12:15 +01:00
Mike Hommey
3c9f465103
Bug 686805 part 2 - Use a SIGSEGV signal handler to handle segmentation faults happening in loaded libraries address space. r=tglek,r=sewardj
2012-02-22 08:12:15 +01:00
Mike Hommey
524ce82972
Bug 686805 part 1 - Make Mappable::munmap, Mappable1stPagePtr::munmap and MappedPtr::munmap private. r=tglek
2012-02-22 08:12:15 +01:00
Mike Hommey
7b29e7253a
Bug 727959 - Add symbol name to relocation errors in the linker. r=tglek
2012-02-21 08:10:43 +01:00
Mike Hommey
d31a431d14
Bug 723939 part 1 - When reserving memory for the loaded library, ensure correct alignment for future MAP_SHARED mappings. r=tglek
2012-02-17 08:55:36 +01:00
Mike Hommey
00ba5188c0
Bug 725230 - Enable and fix assertions in linker code. r=tglek
2012-02-13 15:49:45 +01:00
Mike Hommey
78f3656b4b
Backout 8eef38643ceb (bug 717540) and 78941a969e20 (bug 725230) because of windows debug bustage
2012-02-13 16:35:13 +01:00
Mike Hommey
7fb8e3198a
Bug 725230 - Enable and fix assertions in linker code. r=tglek
2012-02-13 15:49:45 +01:00
Mike Hommey
c36e15d671
Bug 683127 part 11 - Hook the new linker in Android initialization. r=blassey
2012-01-20 09:49:07 +01:00
Mike Hommey
8fd7ef9ab5
Bug 683127 part 10 - Allow debug symbols to be found under gdb without extracted libraries. r=tglek,r=mwu
2012-01-20 09:49:03 +01:00
Mike Hommey
30eed017b6
Bug 683127 part 9 - Allow to temporarily extract Elf files from a Zip archive for e.g. valgrind. r=tglek
2012-01-20 09:48:50 +01:00
Mike Hommey
4b71ba5dc0
Bug 683127 part 8 - Allow to load Elf files from a Zip archive. r=tglek,r=sewardj
2012-01-20 09:48:44 +01:00
Mike Hommey
61d63022fa
Bug 683127 part 7 - Use a custom Elf linker for libraries given with an absolute path name. r=sewardj
2012-01-20 09:48:44 +01:00
Mike Hommey
9907ad2018
Bug 683127 part 5 - Initial Elf Loader, wrapping around dlopen/dladdr/dlsym/dlclose. r=tglek,r=sewardj
2012-01-20 09:48:39 +01:00
Mike Hommey
ca0ce519e1
Fixup for bug 683127 part 4: Avoid RefPtr.h using JS_Assert. r=tglek
2012-01-11 19:36:35 +01:00
Mike Hommey
9f367588bb
Bug 683127 part 1 - Simple Zip reader for the new ELF Linker. r=tglek,r=mwu
2012-01-11 11:10:55 +01:00