|
|
Created:
6 years, 6 months ago by Alexander Potapenko Modified:
6 years, 6 months ago Reviewers:
Nico CC:
chromium-reviews Base URL:
svn://svn.chromium.org/chrome/trunk/src Visibility:
Public. |
DescriptionPackage libclang_rt.san-{i386,x86_64}.a for Chromium Clang.
BUG=174801
R=thakis@chromium.org
NOTRY=true
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=273223
Patch Set 1 #Patch Set 2 : remove dfsan #Patch Set 3 : strip #Patch Set 4 : added xargs #Messages
Total messages: 15 (0 generated)
Please take a look. This pulls in libclang_rt.san-{i386,x86_64}.a (4Mb total), but not libclang_rt.dfsan-x86_64.a (2.4Mb).
Hm, that's pretty large. Why does this need so much code? Conceptually, the ubsan runtime seems like it should be simpler than the asan runtime…
On 2014/05/28 09:27:33, Nico (traveling) wrote: > Hm, that's pretty large. Why does this need so much code? Conceptually, the > ubsan runtime seems like it should be simpler than the asan runtime… For comparison, the 64-bit ASan runtime is 16 megs.
On Wed, May 28, 2014 at 11:28 AM, <glider@chromium.org> wrote: > On 2014/05/28 09:27:33, Nico (traveling) wrote: > >> Hm, that's pretty large. Why does this need so much code? Conceptually, >> the >> ubsan runtime seems like it should be simpler than the asan runtime... >> > > For comparison, the 64-bit ASan runtime is 16 megs. > Oh, ok. I guess it's good that this is smaller than ASan then – but it still seems large (and 16MB seems huge). The runtimes don't do that much, do they? Why do they need that much code? (16 MB got you a decent, complete web browser a few years ago.) To unsubscribe from this group and stop receiving emails from it, send an email to chromium-reviews+unsubscribe@chromium.org.
On 2014/05/28 09:29:47, Nico (traveling) wrote: > On Wed, May 28, 2014 at 11:28 AM, <mailto:glider@chromium.org> wrote: > > > On 2014/05/28 09:27:33, Nico (traveling) wrote: > > > >> Hm, that's pretty large. Why does this need so much code? Conceptually, > >> the > >> ubsan runtime seems like it should be simpler than the asan runtime... > >> > > > > For comparison, the 64-bit ASan runtime is 16 megs. > > > > Oh, ok. I guess it's good that this is smaller than ASan then – but it > still seems large (and 16MB seems huge). The runtimes don't do that much, > do they? Why do they need that much code? (16 MB got you a decent, complete > web browser a few years ago.) > > To unsubscribe from this group and stop receiving emails from it, send an email > to mailto:chromium-reviews+unsubscribe@chromium.org. A quick objdump/grep shows that 800Kb of libclang_rt.san-x86_64 and almost 6Mb of libclang_rt.asan-x86_64 are debug info.
On 2014/05/28 09:45:00, Alexander Potapenko wrote: > On 2014/05/28 09:29:47, Nico (traveling) wrote: > > On Wed, May 28, 2014 at 11:28 AM, <mailto:glider@chromium.org> wrote: > > > > > On 2014/05/28 09:27:33, Nico (traveling) wrote: > > > > > >> Hm, that's pretty large. Why does this need so much code? Conceptually, > > >> the > > >> ubsan runtime seems like it should be simpler than the asan runtime... > > >> > > > > > > For comparison, the 64-bit ASan runtime is 16 megs. > > > > > > > Oh, ok. I guess it's good that this is smaller than ASan then – but it > > still seems large (and 16MB seems huge). The runtimes don't do that much, > > do they? Why do they need that much code? (16 MB got you a decent, complete > > web browser a few years ago.) > > > > To unsubscribe from this group and stop receiving emails from it, send an > email > > to mailto:chromium-reviews+unsubscribe@chromium.org. > > A quick objdump/grep shows that 800Kb of libclang_rt.san-x86_64 and almost 6Mb > of libclang_rt.asan-x86_64 are debug info. Is that used for anything? Can we strip it?
> Is that used for anything? Can we strip it? It's sometimes useful for debugging. The top frames in report stacks can also contain library functions (e.g. wrap_memcpy), but we hardly ever need the exact line numbers. Should be ok to strip.
On 2014/05/28 09:52:51, Alexander Potapenko wrote: > > Is that used for anything? Can we strip it? > > It's sometimes useful for debugging. > The top frames in report stacks can also contain library functions (e.g. > wrap_memcpy), but we hardly ever need the exact line numbers. > Should be ok to strip. Added stripping
Thanks. What are the sizes now? The savings from the *San libs are probably more than the size the additional library adds, right? (If so, lgtm)
On 2014/05/28 10:57:43, Nico (traveling) wrote: > Thanks. What are the sizes now? The savings from the *San libs are probably more > than the size the additional library adds, right? (If so, lgtm) The total size of lib/clang/3.5.0/lib/linux/ is 7Mb now, which makes me think my math was inaccurate :( I've also missed 'xargs' before 'strip' (PS4) Committing now.
The CQ bit was checked by glider@chromium.org
The CQ bit was unchecked by glider@chromium.org
The CQ bit was checked by glider@chromium.org
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/glider@chromium.org/303473011/60001
Message was sent while issue was closed.
Change committed as 273223 |