]> git.ipfire.org Git - thirdparty/glibc.git/commit
x86-64: Don't set GLRO(dl_platform) to NULL [BZ #22299]
authorH.J. Lu <hjl.tools@gmail.com>
Thu, 19 Oct 2017 15:28:09 +0000 (08:28 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Thu, 26 Oct 2017 14:36:47 +0000 (07:36 -0700)
commit4b692dffb95ac4812b161eb6a16113d7e824982e
tree5e2106b2f2f2ac3b7f574967cd9ee1db165c518a
parent77eea8950ce5495ff033bca3465ccfd2db072ae6
x86-64: Don't set GLRO(dl_platform) to NULL [BZ #22299]

Since ld.so expands $PLATFORM with GLRO(dl_platform), don't set
GLRO(dl_platform) to NULL.

[BZ #22299]
* sysdeps/x86/cpu-features.c (init_cpu_features): Don't set
GLRO(dl_platform) to NULL.
* sysdeps/x86_64/Makefile (tests): Add tst-platform-1.
(modules-names): Add tst-platformmod-1 and
x86_64/tst-platformmod-2.
(CFLAGS-tst-platform-1.c): New.
(CFLAGS-tst-platformmod-1.c): Likewise.
(CFLAGS-tst-platformmod-2.c): Likewise.
(LDFLAGS-tst-platformmod-2.so): Likewise.
($(objpfx)tst-platform-1): Likewise.
($(objpfx)tst-platform-1.out): Likewise.
(tst-platform-1-ENV): Likewise.
($(objpfx)x86_64/tst-platformmod-2.os): Likewise.
* sysdeps/x86_64/tst-platform-1.c: New file.
* sysdeps/x86_64/tst-platformmod-1.c: Likewise.
* sysdeps/x86_64/tst-platformmod-2.c: Likewise.

(cherry picked from commit 4d916f0f12b230f49967797f98b2b613c734a047)
ChangeLog
NEWS
sysdeps/x86/cpu-features.c
sysdeps/x86_64/Makefile
sysdeps/x86_64/tst-platform-1.c [new file with mode: 0644]
sysdeps/x86_64/tst-platformmod-1.c [new file with mode: 0644]
sysdeps/x86_64/tst-platformmod-2.c [new file with mode: 0644]