1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-07-28 00:21:52 +03:00

Fix fmtmsg addseverity namespace (bug 18539).

Use of fmtmsg (XSI POSIX) brings in addseverity (non-POSIX).  This
patch fixes this by making addseverity into a weak alias for
__addseverity.

Tested for x86_64 and x86 (testsuite, and that disassembly of
installed shared libraries is unchanged by the patch).

	[BZ #18539]
	* stdlib/fmtmsg.c (addseverity): Rename to __addseverity and
	define as weak alias of __addseverity.
	* conform/Makefile (test-xfail-XPG4/fmtmsg.h/linknamespace):
	Remove variable.
	(test-xfail-UNIX98/fmtmsg.h/linknamespace): Likewise.
	(test-xfail-XOPEN2K/fmtmsg.h/linknamespace): Likewise.
	(test-xfail-XOPEN2K8/fmtmsg.h/linknamespace): Likewise.
This commit is contained in:
Joseph Myers
2015-06-17 20:13:07 +00:00
parent d051b143f7
commit 68f1ba4ba4
4 changed files with 12 additions and 6 deletions

View File

@ -347,7 +347,7 @@ internal_addseverity (int severity, const char *string)
/* Add new severity level or remove old one. */
int
addseverity (int severity, const char *string)
__addseverity (int severity, const char *string)
{
int result;
@ -366,6 +366,7 @@ addseverity (int severity, const char *string)
return result;
}
weak_alias (__addseverity, addseverity)
libc_freeres_fn (free_mem)