• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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)
28
29func (toolchainBionic) Bionic() bool { return true }
30
31func (toolchainBionic) DefaultSharedLibraries() []string { return bionicDefaultSharedLibraries }
32
33func (toolchainBionic) ShlibSuffix() string { return ".so" }
34
35func (toolchainBionic) ExecutableSuffix() string { return "" }
36
37func (toolchainBionic) AvailableLibraries() []string { return nil }
38
39func (toolchainBionic) CrtBeginStaticBinary() []string  { return bionicCrtBeginStaticBinary }
40func (toolchainBionic) CrtBeginSharedBinary() []string  { return bionicCrtBeginSharedBinary }
41func (toolchainBionic) CrtBeginSharedLibrary() []string { return bionicCrtBeginSharedLibrary }
42func (toolchainBionic) CrtEndStaticBinary() []string    { return bionicCrtEndStaticBinary }
43func (toolchainBionic) CrtEndSharedBinary() []string    { return bionicCrtEndSharedBinary }
44func (toolchainBionic) CrtEndSharedLibrary() []string   { return bionicCrtEndSharedLibrary }
45