mirror of
https://github.com/golang/go
synced 2024-11-15 02:30:31 -07:00
78a6f75241
compiler_rt introduces a weak and hidden symbol compilerrt_abort_impl into our pre-linked _all.o object, we have to handle it. Fixes #4273. R=iant, rsc, r CC=golang-dev https://golang.org/cl/6783050
12 lines
375 B
C
12 lines
375 B
C
// Copyright 2012 The Go Authors. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style
|
|
// license that can be found in the LICENSE file.
|
|
|
|
#ifdef __ELF__
|
|
extern void _compilerrt_abort_impl(const char *file, int line, const char *func);
|
|
|
|
void __my_abort(const char *file, int line, const char *func) {
|
|
_compilerrt_abort_impl(file, line, func);
|
|
}
|
|
#endif
|