Handle __gmon_start__ as undefined weak on hppa.
authorJohn David Anglin <danglin@gcc.gnu.org>
Sat, 2 Dec 2017 19:43:28 +0000 (14:43 -0500)
committerJohn David Anglin <danglin@gcc.gnu.org>
Sat, 2 Dec 2017 19:43:28 +0000 (14:43 -0500)
commitb3f7fb12f5c490787d548ecc479920e608f6f904
tree15f8efbcb6b8c29510e265cc0c1ef7f5904b3094
parent800a496acbb8c43036b3832460220d4ecbbc22a4
Handle __gmon_start__ as undefined weak on hppa.

[BZ libc/19170]
* sysdeps/hppa/crti.S: Declare PREINIT_FUNCTION weak_extern when
PREINIT_FUNCTION_WEAK is nonzero.
(gmon_initializer): New function.  Put procedure label for it in
.init_array section.
(_init): Don't call PREINIT_FUNCTION.
* sysdeps/hppa/crtn.S (__gmon_start__): Remove.
* sysdeps/hppa/dl-lookupcfg.h (DL_FIXUP_MAKE_VALUE): Create null fixup
value when map argument is null.
ChangeLog
sysdeps/hppa/crti.S
sysdeps/hppa/crtn.S
sysdeps/hppa/dl-lookupcfg.h