[build] Port "Add patched eu-strip in third_party"

This ports:
https://chromium-review.googlesource.com/c/544798/

This is needed to unblock rolling build into v8 at:
https://chromium-review.googlesource.com/c/v8/v8/+/657634

Bug: chromium:593874, chromium:742655
Change-Id: Ie00f2d13cfd052881a84b6e0cb95c336b7d2581c
Reviewed-on: https://chromium-review.googlesource.com/680815
Commit-Queue: Michael Achenbach <machenbach@chromium.org>
Reviewed-by: Sergiy Byelozyorov <sergiyb@chromium.org>
Cr-Commit-Position: refs/heads/master@{#48134}
This commit is contained in:
Michael Achenbach 2017-09-25 11:18:35 +02:00 committed by Commit Bot
parent e35a0327c0
commit 571076ecb1
3 changed files with 25 additions and 0 deletions

1
.gitignore vendored
View File

@ -64,6 +64,7 @@
/testing/gtest
/third_party/*
!/third_party/binutils
!/third_party/eu-strip
!/third_party/inspector_protocol
/tools/clang
/tools/gcmole/gcmole-tools

24
third_party/eu-strip/README.v8 vendored Normal file
View File

@ -0,0 +1,24 @@
Name: eu-strip
URL: https://sourceware.org/elfutils/
Version: 0.158
Security Critical: no
License: LGPL 3
License File: NOT_SHIPPED
Description:
Patched eu-strip from elfutils.
Build instructions (on Trusty; note that this will build the
Ubuntu-patched version of elfutils):
$ mkdir elfutils
$ cd elfutils
$ apt-get source elfutils
$ cd elfutils-0.158
[ Edit libelf/elf_end.c and remove the free() on line 164. ]
$ ./configure
$ make
$ gcc -std=gnu99 -Wall -Wshadow -Wunused -Wextra -fgnu89-inline
-Wformat=2 -Werror -g -O2 -Wl,-rpath-link,libelf:libdw -o eu-strip
src/strip.o libebl/libebl.a libelf/libelf.a lib/libeu.a -ldl
$ eu-strip ./eu-strip # Keep the binary small, please.

BIN
third_party/eu-strip/bin/eu-strip vendored Executable file

Binary file not shown.