MIPS: Avoid a dangling `vfork@GLIBC_2.0' reference
authorMaciej W. Rozycki <macro@codesourcery.com>
Wed, 22 Oct 2014 14:20:37 +0000 (15:20 +0100)
committerMaciej W. Rozycki <macro@codesourcery.com>
Wed, 22 Oct 2014 14:20:37 +0000 (15:20 +0100)
commitb5af9297d51a43f96c5be1bafab032184690dd6f
tree309174e190e6b3665bd7b6e2a62e08ed8124a615
parenta13d0d745ca3ea5e80506db7de0498d74d44a5b7
MIPS: Avoid a dangling `vfork@GLIBC_2.0' reference

This satisfies a symbol reference created with:

.symver __libc_vfork, vfork@GLIBC_2.0

where `__libc_vfork' has not been defined or referenced.  In this case
the `vfork@GLIBC_2.0' reference is supposed to be discarded, however a
bug present in GAS since forever causes an undefined symbol table entry
to be created.  This in turn triggers a problem in the linker that can
manifest itself by link errors such as:

ld: libpthread.so: invalid string offset 2765592330 >= 5154 for section `.dynstr'

The GAS and linker bugs need to be resolved, but we can avoid them too
by providing a `__libc_vfork' definition just like our other platforms.

[BZ #17485]
* sysdeps/unix/sysv/linux/mips/vfork.S (__libc_vfork): Define.
ChangeLog
NEWS
sysdeps/unix/sysv/linux/mips/vfork.S