Skip to content

Commit 571076e

Browse files
mi-acCommit Bot
authored andcommitted
[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 <[email protected]> Reviewed-by: Sergiy Byelozyorov <[email protected]> Cr-Commit-Position: refs/heads/master@{#48134}
1 parent e35a032 commit 571076e

File tree

3 files changed

+25
-0
lines changed

3 files changed

+25
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@
6464
/testing/gtest
6565
/third_party/*
6666
!/third_party/binutils
67+
!/third_party/eu-strip
6768
!/third_party/inspector_protocol
6869
/tools/clang
6970
/tools/gcmole/gcmole-tools

third_party/eu-strip/README.v8

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
Name: eu-strip
2+
URL: https://sourceware.org/elfutils/
3+
Version: 0.158
4+
Security Critical: no
5+
License: LGPL 3
6+
License File: NOT_SHIPPED
7+
8+
Description:
9+
10+
Patched eu-strip from elfutils.
11+
12+
Build instructions (on Trusty; note that this will build the
13+
Ubuntu-patched version of elfutils):
14+
$ mkdir elfutils
15+
$ cd elfutils
16+
$ apt-get source elfutils
17+
$ cd elfutils-0.158
18+
[ Edit libelf/elf_end.c and remove the free() on line 164. ]
19+
$ ./configure
20+
$ make
21+
$ gcc -std=gnu99 -Wall -Wshadow -Wunused -Wextra -fgnu89-inline
22+
-Wformat=2 -Werror -g -O2 -Wl,-rpath-link,libelf:libdw -o eu-strip
23+
src/strip.o libebl/libebl.a libelf/libelf.a lib/libeu.a -ldl
24+
$ eu-strip ./eu-strip # Keep the binary small, please.

third_party/eu-strip/bin/eu-strip

103 KB
Binary file not shown.

0 commit comments

Comments
 (0)