New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 885268 link

Starred by 2 users

Issue metadata

Status: Verified
Owner:
Last visit > 30 days ago
Closed: Sep 21
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 3
Type: Bug
Build-Toolchain

Blocking:
issue 862442



Sign in to add a comment

failed to run x86-32 binaries linked with LLD.

Project Member Reported by yunlian@chromium.org, Sep 18

Issue description

USE="lld -gold" emerge-kevin chromeos-chrome


It failed to run
 ./v8_snapshot/torque -o gen/v8/torque-generated on host. 

This is because we enabled smallpie on LLD by default, but our glibc does
not enable smallpie support on x86-32.
 
why is this a P3? isn't it blocking LLD migration?
do you have a workaround?
I have a CL in commit queue now.
Project Member

Comment 3 by bugdroid1@chromium.org, Sep 19

The following revision refers to this bug:
  https://chromium.googlesource.com/chromiumos/overlays/chromiumos-overlay/+/bbc5050878d7c660b388c0b0cf5d8d716651f7af

commit bbc5050878d7c660b388c0b0cf5d8d716651f7af
Author: Yunlian Jiang <yunlian@google.com>
Date: Wed Sep 19 22:40:27 2018

glibc: add smallpie support for x86-32 system.

We enabled smallpie by default for LLD. When setting USE="lld" in the
chromeos-chrome ebuild, it uses LLD to link host binaries and smallpie
is enabled on these binaries. When building ARM32 chrome, it will
build and run some x86-32 binaries with small pie enabled.

This CL adds smallpie support for x86-32 system so that we can run
these host binary without problem.

BUG= chromium:885268 
TEST=run ./v8_snapshot/torque succesfully.

Change-Id: I1cf5893be21e2983ce5c6214bb0af3ca3959811f
Reviewed-on: https://chromium-review.googlesource.com/1231855
Commit-Ready: Yunlian Jiang <yunlian@chromium.org>
Tested-by: Yunlian Jiang <yunlian@chromium.org>
Reviewed-by: Manoj Gupta <manojgupta@chromium.org>
Reviewed-by: Mike Frysinger <vapier@chromium.org>

[rename] https://crrev.com/bbc5050878d7c660b388c0b0cf5d8d716651f7af/sys-libs/glibc/glibc-2.23-r21.ebuild
[modify] https://crrev.com/bbc5050878d7c660b388c0b0cf5d8d716651f7af/sys-libs/glibc/files/local/glibc-2.23-sht_relr.patch

Status: Verified (was: Untriaged)

Sign in to add a comment