glibc/sysdeps/unix/sysv/linux/arm
Joseph Myers 93ae1ebaa6 Clean up gnu/lib-names.h generation (bug 14171).
This patch eliminates the mixture of SONAME information in
shlib-versions files and SONAME information used to generate
gnu/lib-names.h in makefiles, with the information in the makefiles
being removed so all this information comes from the shlib-versions
files.

So that gnu/lib-names.h supports multiple ABIs, it is changed to be
generated on the same basis as gnu/stubs.h: when there are multiple
ABIs, gnu/lib-names.h is a wrapper header (the same header installed
whatever ABI is being built) and separate headers such as
gnu/lib-names-64.h contain the substantive contents (only one such
header being installed by any glibc build).

The rules for building gnu/lib-names.h were moved from Makeconfig to
Makerules because they need to come after sysdeps makefiles are
included (now that "ifndef abi-variants" is a toplevel conditional on
the rules rather than $(abi-variants) being evaluated later inside the
commands for a rule).

Tested for x86_64 and x86 that the installed shared libraries are
unchanged by this patch, and examined the installed gnu/lib-names*.h
headers by hand.  Also tested the case of a single ABI (where there is
just a single header installed, again like stubs.h) by hacking
abi-variants to empty for x86_64.

	[BZ #14171]
	* Makeconfig [$(build-shared) = yes]
	($(common-objpfx)soversions.mk): Don't handle SONAMEs specified in
	makefiles.
	[$(build-shared) = yes && $(soversions.mk-done) = t]
	($(common-objpfx)gnu/lib-names.h): Remove rule.
	[$(build-shared) = yes && $(soversions.mk-done) = t]
	($(common-objpfx)gnu/lib-names.stmp): Likewise.  Split and moved
	to Makerules.
	[$(build-shared) = yes && $(soversions.mk-done) = t]
	(before-compile): Don't append $(common-objpfx)gnu/lib-names.h
	here.
	[$(build-shared) = yes && $(soversions.mk-done) = t]
	(common-generated): Don't append gnu/lib-names.h and
	gnu/lib-names.stmp here.
	* Makerules [$(build-shared) = yes && $(soversions.mk-done) = t]
	(lib-names-h-abi): New variable.
	[$(build-shared) = yes && $(soversions.mk-done) = t]
	(lib-names-stmp-abi): Likewise.
	[$(build-shared) = yes && $(soversions.mk-done) = t &&
	abi-variants] (before-compile): Append
	$(common-objpfx)$(lib-names-h-abi).
	[$(build-shared) = yes && $(soversions.mk-done) = t &&
	abi-variants] (common-generated): Append gnu/lib-names.h.
	[$(build-shared) = yes && $(soversions.mk-done) = t &&
	abi-variants] (install-others-nosubdir): Depend on
	$(inst_includedir)/$(lib-names-h-abi).
	[$(build-shared) = yes && $(soversions.mk-done) = t &&
	abi-variants] ($(common-objpfx)gnu/lib-names.h): New rule.
	[$(build-shared) = yes && $(soversions.mk-done) = t]
	($(common-objpfx)$(lib-names-h-abi)): New rule.
	[$(build-shared) = yes && $(soversions.mk-done) = t]
	($(common-objpfx)$(lib-names-stmp-abi)): Likewise.
	[$(build-shared) = yes && $(soversions.mk-done) = t]
	(common-generated): Append $(lib-names-h-abi) and
	$(lib-names-stmp-abi).
	* scripts/lib-names.awk: Do not handle multi being set.
	* sysdeps/unix/sysv/linux/aarch64/Makefile (abi-lp64-ld-soname):
	Remove variable.
	(abi-lp64_be-ld-soname): Likewise.
	* sysdeps/unix/sysv/linux/arm/Makefile (abi-soft-ld-soname):
	Likewise.
	(abi-hard-ld-soname): Likewise.
	* sysdeps/unix/sysv/linux/i386/shlib-versions: New file.
	* sysdeps/unix/sysv/linux/mips/Makefile (abi-o32_soft-ld-soname):
	Remove variable.
	(abi-o32_hard-ld-soname): Likewise.
	(abi-o32_soft_2008-ld-soname): Likewise.
	(abi-o32_hard_2008-ld-soname): Likewise.
	(abi-n32_soft-ld-soname): Likewise.
	(abi-n32_hard-ld-soname): Likewise.
	(abi-n32_soft_2008-ld-soname): Likewise.
	(abi-n32_hard_2008-ld-soname): Likewise.
	(abi-n64_soft-ld-soname): Likewise.
	(abi-n64_hard-ld-soname): Likewise.
	(abi-n64_soft_2008-ld-soname): Likewise.
	(abi-n64_hard_2008-ld-soname): Likewise.
	* sysdeps/unix/sysv/linux/powerpc/Makefile (abi-64-v1-ld-soname):
	Likewise.
	(abi-64-v2-ld-soname): Likewise.
	* sysdeps/unix/sysv/linux/powerpc/powerpc64/shlib-versions: Add
	ld.so entries.
	* sysdeps/unix/sysv/linux/s390/Makefile (abi-64-ld-soname): Remove
	variable.
	* sysdeps/unix/sysv/linux/s390/s390-64/shlib-versions: Add ld.so
	entry.
	* sysdeps/unix/sysv/linux/x86/Makefile (abi-32-ld-soname): Remove
	variable.
	(abi-64-ld-soname): Likewise.
	(abi-x32-ld-soname): Likewise.
	* sysdeps/unix/sysv/linux/x86_64/64/shlib-versions: Add ld.so
	entry.
	* sysdeps/unix/sysv/linux/x86_64/x32/shlib-versions: Likewise.
2014-09-26 17:33:04 +00:00
..
bits ARM: Don't define _SYS_AUXV_H in sysdep.h 2014-09-23 14:58:49 +01:00
sys Move arm from ports to libc. 2014-02-08 01:49:39 +00:00
Implies NPTL is no longer an add-on! 2014-07-07 09:29:06 -07:00
Makefile Clean up gnu/lib-names.h generation (bug 14171). 2014-09-26 17:33:04 +00:00
Versions Remove ARM __ASSUME_SIGFRAME_V2. 2014-06-21 00:58:56 +00:00
____longjmp_chk.S Move arm from ports to libc. 2014-02-08 01:49:39 +00:00
aeabi_read_tp.S Move arm from ports to libc. 2014-02-08 01:49:39 +00:00
alphasort64.c Move arm from ports to libc. 2014-02-08 01:49:39 +00:00
arch-fork.h ARM: Convert fork.c to arch-fork.h 2014-05-16 12:51:39 -07:00
arm-features.h Move arm from ports to libc. 2014-02-08 01:49:39 +00:00
brk.c Move arm from ports to libc. 2014-02-08 01:49:39 +00:00
c++-types.data Verbatim NPTL file moves for ARM/Linux. 2014-05-13 10:04:20 -07:00
clone.S Consolidate NPTL vs non clone.S for ARM. 2014-05-13 10:03:45 -07:00
dl-cache.h Move arm from ports to libc. 2014-02-08 01:49:39 +00:00
dl-machine.h Move arm from ports to libc. 2014-02-08 01:49:39 +00:00
dl-procinfo.c ARM: Add support for AT_HWCAP2 in _dl_procinfo 2014-06-25 16:02:04 +01:00
dl-procinfo.h ARM: Add support for AT_HWCAP2 in _dl_procinfo 2014-06-25 16:02:04 +01:00
fchown.c Move arm from ports to libc. 2014-02-08 01:49:39 +00:00
fcntl.c Move arm from ports to libc. 2014-02-08 01:49:39 +00:00
ftruncate64.c Move arm from ports to libc. 2014-02-08 01:49:39 +00:00
fxstat.c Move arm from ports to libc. 2014-02-08 01:49:39 +00:00
fxstatat.c Move arm from ports to libc. 2014-02-08 01:49:39 +00:00
getcontext.S Move arm from ports to libc. 2014-02-08 01:49:39 +00:00
getdents64.c Move arm from ports to libc. 2014-02-08 01:49:39 +00:00
getegid.c Move arm from ports to libc. 2014-02-08 01:49:39 +00:00
geteuid.c Move arm from ports to libc. 2014-02-08 01:49:39 +00:00
getgid.c Move arm from ports to libc. 2014-02-08 01:49:39 +00:00
getgroups.c Move arm from ports to libc. 2014-02-08 01:49:39 +00:00
getresgid.c Move arm from ports to libc. 2014-02-08 01:49:39 +00:00
getresuid.c Move arm from ports to libc. 2014-02-08 01:49:39 +00:00
getrlimit64.c Move arm from ports to libc. 2014-02-08 01:49:39 +00:00
getuid.c Move arm from ports to libc. 2014-02-08 01:49:39 +00:00
glob64.c Move arm from ports to libc. 2014-02-08 01:49:39 +00:00
internal_accept4.S Move arm from ports to libc. 2014-02-08 01:49:39 +00:00
internal_recvmmsg.S Move arm from ports to libc. 2014-02-08 01:49:39 +00:00
internal_sendmmsg.S Move arm from ports to libc. 2014-02-08 01:49:39 +00:00
ioperm.c Move arm from ports to libc. 2014-02-08 01:49:39 +00:00
kernel-features.h Remove ARM __ASSUME_SIGFRAME_V2. 2014-06-21 00:58:56 +00:00
lchown.c Move arm from ports to libc. 2014-02-08 01:49:39 +00:00
ld.abilist Verbatim NPTL file moves for ARM/Linux. 2014-05-13 10:04:20 -07:00
ldconfig.h Move arm from ports to libc. 2014-02-08 01:49:39 +00:00
ldsodefs.h Move arm from ports to libc. 2014-02-08 01:49:39 +00:00
libBrokenLocale.abilist Verbatim NPTL file moves for ARM/Linux. 2014-05-13 10:04:20 -07:00
libanl.abilist Verbatim NPTL file moves for ARM/Linux. 2014-05-13 10:04:20 -07:00
libc-do-syscall.S Move arm from ports to libc. 2014-02-08 01:49:39 +00:00
libc.abilist Verbatim NPTL file moves for ARM/Linux. 2014-05-13 10:04:20 -07:00
libcrypt.abilist Verbatim NPTL file moves for ARM/Linux. 2014-05-13 10:04:20 -07:00
libdl.abilist Verbatim NPTL file moves for ARM/Linux. 2014-05-13 10:04:20 -07:00
libm.abilist Verbatim NPTL file moves for ARM/Linux. 2014-05-13 10:04:20 -07:00
libnsl.abilist Verbatim NPTL file moves for ARM/Linux. 2014-05-13 10:04:20 -07:00
libpthread.abilist Verbatim NPTL file moves for ARM/Linux. 2014-05-13 10:04:20 -07:00
libresolv.abilist Verbatim NPTL file moves for ARM/Linux. 2014-05-13 10:04:20 -07:00
librt.abilist Verbatim NPTL file moves for ARM/Linux. 2014-05-13 10:04:20 -07:00
libthread_db.abilist Verbatim NPTL file moves for ARM/Linux. 2014-05-13 10:04:20 -07:00
libutil.abilist Verbatim NPTL file moves for ARM/Linux. 2014-05-13 10:04:20 -07:00
localplt.data Verbatim NPTL file moves for ARM/Linux. 2014-05-13 10:04:20 -07:00
lockf64.c Move arm from ports to libc. 2014-02-08 01:49:39 +00:00
lxstat.c Fix whitespace in ARM files to allow move. 2014-02-08 01:52:38 +00:00
makecontext.c Move arm from ports to libc. 2014-02-08 01:49:39 +00:00
mmap.S Move arm from ports to libc. 2014-02-08 01:49:39 +00:00
mmap64.S Move arm from ports to libc. 2014-02-08 01:49:39 +00:00
msgctl.c Move arm from ports to libc. 2014-02-08 01:49:39 +00:00
oldgetrlimit.c Move arm from ports to libc. 2014-02-08 01:49:39 +00:00
oldgetrlimit64.c Move arm from ports to libc. 2014-02-08 01:49:39 +00:00
oldsetrlimit.c Move arm from ports to libc. 2014-02-08 01:49:39 +00:00
posix_fadvise.c Move arm from ports to libc. 2014-02-08 01:49:39 +00:00
posix_fadvise64.c Clean up ARM old-ABI symbol versioning relics. 2014-05-14 00:41:20 +00:00
pread.c Move arm from ports to libc. 2014-02-08 01:49:39 +00:00
pread64.c Move arm from ports to libc. 2014-02-08 01:49:39 +00:00
profil-counter.h Move arm from ports to libc. 2014-02-08 01:49:39 +00:00
pwrite.c Move arm from ports to libc. 2014-02-08 01:49:39 +00:00
pwrite64.c Move arm from ports to libc. 2014-02-08 01:49:39 +00:00
readahead.c Move arm from ports to libc. 2014-02-08 01:49:39 +00:00
readdir64.c Move arm from ports to libc. 2014-02-08 01:49:39 +00:00
readdir64_r.c Move arm from ports to libc. 2014-02-08 01:49:39 +00:00
readelflib.c Move arm from ports to libc. 2014-02-08 01:49:39 +00:00
register-dump.h Move arm from ports to libc. 2014-02-08 01:49:39 +00:00
scandir64.c Move arm from ports to libc. 2014-02-08 01:49:39 +00:00
semctl.c Move arm from ports to libc. 2014-02-08 01:49:39 +00:00
setcontext.S Move arm from ports to libc. 2014-02-08 01:49:39 +00:00
setegid.c Move arm from ports to libc. 2014-02-08 01:49:39 +00:00
seteuid.c Move arm from ports to libc. 2014-02-08 01:49:39 +00:00
setfsgid.c Move arm from ports to libc. 2014-02-08 01:49:39 +00:00
setfsuid.c Move arm from ports to libc. 2014-02-08 01:49:39 +00:00
setgid.c Move arm from ports to libc. 2014-02-08 01:49:39 +00:00
setgroups.c Move arm from ports to libc. 2014-02-08 01:49:39 +00:00
setregid.c Move arm from ports to libc. 2014-02-08 01:49:39 +00:00
setresgid.c Move arm from ports to libc. 2014-02-08 01:49:39 +00:00
setresuid.c Move arm from ports to libc. 2014-02-08 01:49:39 +00:00
setreuid.c Move arm from ports to libc. 2014-02-08 01:49:39 +00:00
setuid.c Move arm from ports to libc. 2014-02-08 01:49:39 +00:00
shlib-versions Remove configuration name patterns from shlib-versions. 2014-09-12 12:28:47 +00:00
shmctl.c Move arm from ports to libc. 2014-02-08 01:49:39 +00:00
sigaction.c Get rid of nptl/sysdeps/ entirely! 2014-07-07 09:28:38 -07:00
sigcontextinfo.h Remove stray includes of kernel-features.h. 2014-06-25 18:09:01 +00:00
sigrestorer.S Remove ARM __ASSUME_SIGFRAME_V2. 2014-06-21 00:58:56 +00:00
swapcontext.S Move arm from ports to libc. 2014-02-08 01:49:39 +00:00
syscall.S Move arm from ports to libc. 2014-02-08 01:49:39 +00:00
syscalls.list Move arm from ports to libc. 2014-02-08 01:49:39 +00:00
sysdep-cancel.h arm,aarch64: Remove SINGLE_THREAD_P_PIC 2014-05-25 12:50:41 -04:00
sysdep.S Move arm from ports to libc. 2014-02-08 01:49:39 +00:00
sysdep.h ARM: Don't define _SYS_AUXV_H in sysdep.h 2014-09-23 14:58:49 +01:00
tls.h ARM: Split Linuxism out of sysdeps/arm/nptl/tls.h 2014-06-30 11:19:22 -07:00
truncate64.c Move arm from ports to libc. 2014-02-08 01:49:39 +00:00
ucontext_i.sym Move arm from ports to libc. 2014-02-08 01:49:39 +00:00
umount.c Move arm from ports to libc. 2014-02-08 01:49:39 +00:00
unwind-forcedunwind.c Fix ARM build with GCC trunk. 2014-05-20 21:27:13 +00:00
unwind-resume.c Fix ARM build with GCC trunk. 2014-05-20 21:27:13 +00:00
versionsort64.c Move arm from ports to libc. 2014-02-08 01:49:39 +00:00
vfork.S ARM: Consolidate NPTL/non versions of vfork 2014-05-14 09:44:24 -07:00
xstat.c Move arm from ports to libc. 2014-02-08 01:49:39 +00:00