1// Copyright 2015 Google Inc. All rights reserved. 2// 3// Licensed under the Apache License, Version 2.0 (the "License"); 4// you may not use this file except in compliance with the License. 5// You may obtain a copy of the License at 6// 7// http://www.apache.org/licenses/LICENSE-2.0 8// 9// Unless required by applicable law or agreed to in writing, software 10// distributed under the License is distributed on an "AS IS" BASIS, 11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12// See the License for the specific language governing permissions and 13// limitations under the License. 14 15package config 16 17type toolchainBionic struct { 18 toolchainBase 19} 20 21var ( 22 bionicDefaultSharedLibraries = []string{"libc", "libm", "libdl"} 23 24 bionicCrtBeginStaticBinary, bionicCrtEndStaticBinary = []string{"crtbegin_static"}, []string{"crtend_android"} 25 bionicCrtBeginSharedBinary, bionicCrtEndSharedBinary = []string{"crtbegin_dynamic"}, []string{"crtend_android"} 26 bionicCrtBeginSharedLibrary, bionicCrtEndSharedLibrary = []string{"crtbegin_so"}, []string{"crtend_so"} 27 bionicCrtPadSegmentSharedLibrary = []string{"crt_pad_segment"} 28) 29 30func (toolchainBionic) Bionic() bool { return true } 31 32func (toolchainBionic) DefaultSharedLibraries() []string { return bionicDefaultSharedLibraries } 33 34func (toolchainBionic) ShlibSuffix() string { return ".so" } 35 36func (toolchainBionic) ExecutableSuffix() string { return "" } 37 38func (toolchainBionic) AvailableLibraries() []string { return nil } 39 40func (toolchainBionic) CrtBeginStaticBinary() []string { return bionicCrtBeginStaticBinary } 41func (toolchainBionic) CrtBeginSharedBinary() []string { return bionicCrtBeginSharedBinary } 42func (toolchainBionic) CrtBeginSharedLibrary() []string { return bionicCrtBeginSharedLibrary } 43func (toolchainBionic) CrtEndStaticBinary() []string { return bionicCrtEndStaticBinary } 44func (toolchainBionic) CrtEndSharedBinary() []string { return bionicCrtEndSharedBinary } 45func (toolchainBionic) CrtEndSharedLibrary() []string { return bionicCrtEndSharedLibrary } 46func (toolchainBionic) CrtPadSegmentSharedLibrary() []string { return bionicCrtPadSegmentSharedLibrary } 47