aboutsummaryrefslogtreecommitdiffstats
path: root/cc/strip.go
Commit message (Collapse)AuthorAgeFilesLines
* Revert "Revert "Strip libgcc to only keep fallback symbols""Yi Kong2019-05-071-4/+13
| | | | | | | | | | This reverts commit 619cd098b6008d81876f310e2d83ebf141c4061e. Test: manual testing Bug: 130267141 Change-Id: Ie156d4a3255be0ad082cda35c22bac4359852f22 Merged-In: I5b349fa6138e51663bf3b67109b880b4356da8e8 Exempt-From-Owner-Approval: Cherry pick
* Revert "Strip libgcc to only keep fallback symbols"Colin Cross2019-05-061-13/+4
| | | | | | | | | | This reverts commit bd475367c3dcb4478a70409c99b959ebdb117be3. Reason for revert: b/130267141 Bug: 29275768 Bug: 130267141 Merged-In: I5b349fa6138e51663bf3b67109b880b4356da8e8 Change-Id: Ieab56390b27240ef7f2f52a48a673809da7bcf8e
* Strip libgcc to only keep fallback symbolsYi Kong2019-05-031-4/+13
| | | | | | | | | | | | | | We use libgcc as fallback for symbols not present in libclang_rt builtins, however we didn't know what exact symbols were being used, some may not be intended to fallback. Create libgcc_stripped, which only contains unwind symbols from libgcc. Bug: 29275768 Test: bionic-unit-tests Change-Id: I98df02ead7f6cca4e76ec92d4f880de4e03f5b5c Merged-In: I5b349fa6138e51663bf3b67109b880b4356da8e8 (cherry picked from commit acee27cd7236554d0112001c96b9b5790c1c7097)
* Use soong_cc_prebuilt.mk instead of prebuilt.mk for Soong cc modulesColin Cross2018-09-101-1/+2
| | | | | | | | | | | | | Export Soong cc modules to Make using a new soong_cc_prebuilt.mk that bypasses all of prebuilt_internal.mk, dynamic_binary.mk and binary.mk. This also means that stripping is handled in Soong instead of Make. Relands If9008c50920779048480f5eeeb0084f26006c998 with fixes for mac builds. Bug: 113936524 Test: m checkbuild Change-Id: I9710ff57f0793f36eb889eabd08bd60a365a88dd
* Revert "Use soong_cc_prebuilt.mk instead of prebuilt.mk for Soong cc modules"Colin Cross2018-09-101-2/+1
| | | | | | | | | This reverts commit e2874cd99d574de49d34f8987a0af64331c7ad6e. Reason for revert: broke mac builds Bug: 113936524 Change-Id: Id0311d6b202b18e80953da632133548d56ed851a
* Use soong_cc_prebuilt.mk instead of prebuilt.mk for Soong cc modulesColin Cross2018-09-101-1/+2
| | | | | | | | | | Export Soong cc modules to Make using a new soong_cc_prebuilt.mk that bypasses all of prebuilt_internal.mk, dynamic_binary.mk and binary.mk. This also means that stripping is handled in Soong instead of Make. Bug: 113936524 Test: m checkbuild Change-Id: If9008c50920779048480f5eeeb0084f26006c998
* Fix logic for adding gnu debuglink to match MakeColin Cross2018-09-051-2/+3
| | | | | | | | | Only add gnu debuglink on userdebug builds to match Make, and don't add it when using minidebuginfo, which doesn't support it. Bug: 113936524 Test: m checkbuild Change-Id: Ifd529f88d63afa5627172fb6ea612aea77159f40
* Add Soong support for stripping all symbolsColin Cross2018-09-051-1/+6
| | | | | | Bug: 113936524 Test: m checkbuild Change-Id: I2fb4429aee689dc6a99dc973b37575a114e46be6
* Add stripping and toc support to Soong cc_prebuilt modulesColin Cross2018-09-051-1/+1
| | | | | | Bug: 113936524 Test: m checkbuild Change-Id: I67ec2e94d349924c3e209939030b204fdaff9c47
* Replace ModuleContext.AConfig() with Config()Colin Cross2017-11-301-1/+1
| | | | | | | | | AConfig() now duplicates Config(). Replace the uses of AConfig() with Config(). Leave AConfig() for now until code in other projects is cleaned up. Test: m checkbuild Change-Id: Ic88be643049d21dba45dbd1a65588ed94bf43bdc
* Change bool, and string properties to *bool, and *string for ccNan Zhang2017-11-071-5/+7
| | | | | | | | | | | | | | there's no use case for prepending/appending to bool, and string properties within module struct. Declearing "*bool" and "*string" almost cover everything user need. I did see one case that user specify relative_install_path as path prefix in cc_defaults, and concatenate with the one in real module to get the final relative install path in Android.bp <bionic/tests/libs>. Test: m -j checkbuild Bug: b/68853585 Change-Id: If3a7a2689c3fc307aae136af6bc9c57f27a1e1a0
* Separate cc.goColin Cross2016-07-291-0/+44
Split cc.go into files per module type, plus files for the compiler, linker, and installer stages. Change-Id: Id44c03f42fcd180950ccd008d4de0c144ea3597b