platform_build_soong/cmd
Dan Willemsen 10bf17cf45 Fix the host bionic linker check; add tests
Gold uses two PT_LOAD programs: RX, RW
LLD is using three PT_LOAD programs: R, RX, RW

All non-static host bionic executables are linked with LLD, as it's
required in order to embed the linker. The dynamic linker is considered
a static executable for this definition.

When the linker had been built with Gold, we inserted the the RX&RW
loads in the middle of the executable's readonly load, splitting the R
load into two. When this happened, all of the linker's loads existed 1:1
in the final executable.

Now that the linker is built with LLD, we're inserting the loads into
the same place, but LLD merges the first part of the executable's R load
with the linker's R load, so there's not a 1:1 matching.

So just make sure that all of the linker's loads are contained within
the executable's loads (and with the appropriate flags).

Test: m blueprint_tools (runs new tests)
Test: build host bionic binaries
Change-Id: If7868d2ab8980d27ba5ab8994fefe0d6142f215a
2018-11-12 22:29:44 -08:00
..
dep_fixer Fix lint errors caught by go test 2018-07-16 15:24:43 -07:00
extract_jar_packages Regenerate R.java files from LOCAL_STATIC_ANDROID_LIBRARIES 2018-05-02 13:11:01 -07:00
extract_linker Rework how linux_bionic is built with LLD 2018-10-22 15:46:03 -07:00
fileslist fileslist: hash the content of symlink, not the file it points to. 2017-03-29 13:43:41 -07:00
host_bionic_inject Fix the host bionic linker check; add tests 2018-11-12 22:29:44 -08:00
javac_wrapper Use SoongJavacWrapper for javadoc 2018-10-02 16:45:37 -07:00
merge_zips Always allow duplicates with identical CRC32 and size 2018-10-17 15:49:53 -07:00
multiproduct_kati Speed up build_test 2018-10-29 10:43:37 -07:00
path_interposer Fix lint errors caught by go test 2018-07-16 15:24:43 -07:00
pom2bp pom2bp: clean up templates 2018-08-30 11:18:50 -07:00
pom2mk Add pom2mk -exclude 2018-04-23 16:16:52 -07:00
sbox Use __SBOX_OUT_DIR__ in sbox output file list 2018-02-21 14:55:34 -08:00
soong_build Use Config/DeviceConfig functions to access ProductVariables 2018-04-11 01:45:14 +00:00
soong_env Switch to blueprint's microfactory 2017-07-24 15:29:14 -07:00
soong_ui Fix `go vet` issues 2018-07-22 21:18:45 -07:00
zip2zip Keep directories when moving glob results 2018-11-01 20:34:44 +00:00
zipsync Fix format string issues 2018-03-28 15:54:52 -07:00