libc/{i386,amd64}: Do not export .cerror when building WITHOUT_SYMVER
Further to r240152 (i386) and r240178 (amd64), hide the .cerror symbol so that it is not exported if symbol versioning is not in use. Without this change WITHOUT_SYMVER libc contains .text relocations for .cerror, as described in LLVM PR 26813 (http://llvm.org/pr26813). This is a no-op for the regular build as the symbol version script already controls .cerror visibility. PR: 207712 Submitted by: Rafael Espíndola Reviewed by: jilles, kib Differential Revision: https://reviews.freebsd.org/D5571
This commit is contained in:
@@ -39,6 +39,7 @@ __FBSDID("$FreeBSD$");
|
||||
#include "SYS.h"
|
||||
|
||||
.globl HIDENAME(cerror)
|
||||
.hidden HIDENAME(cerror)
|
||||
|
||||
/*
|
||||
* The __error() function is thread aware. For non-threaded
|
||||
|
||||
@@ -39,6 +39,7 @@ __FBSDID("$FreeBSD$");
|
||||
#include "SYS.h"
|
||||
|
||||
.globl HIDENAME(cerror)
|
||||
.hidden HIDENAME(cerror)
|
||||
|
||||
/*
|
||||
* The __error() function is thread aware. For non-threaded
|
||||
|
||||
Reference in New Issue
Block a user