From b3f7fb12f5c490787d548ecc479920e608f6f904 Mon Sep 17 00:00:00 2001 From: John David Anglin Date: Sat, 2 Dec 2017 14:43:28 -0500 Subject: 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 | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'ChangeLog') diff --git a/ChangeLog b/ChangeLog index d85007edb0..e24ae784ac 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,15 @@ 2017-12-02 John David Anglin + [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. + * sysdeps/hppa/dl-fptr.c (elf_machine_resolve): Remove unnecessary depi instruction from PIC pc-relative sequence. * sysdeps/hppa/dl-fptr.h (ELF_MACHINE_LOAD_ADDRESS): Likewise. -- cgit v1.2.3