From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by sourceware.org (Postfix) with ESMTPS id 667D73857C4B for ; Mon, 29 Aug 2022 12:26:55 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 667D73857C4B Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1661776014; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=8CcpPwRZQKMmAlP/4T5erx2PqHjnSKqeGb3JcssmfpQ=; b=ec9tPRRGt8G0opMeMHJxMKqU9BTlTC6cMOmQN/XK/WwUcbkVdlDkSqt/IRSY4P3i+5woV9 BHky6ogfg7BbIWLJoBuOChSVFqr/6hZsQ+Ch5o20M6EMVsApPQXNHJeft+PNsfGoXvvlF9 SBtMZ3VeXsFo3zshZT+oZdQT2+zvnr8= Received: from mimecast-mx02.redhat.com (mx3-rdu2.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-413-sA1RuC5OM3SuumZsoyMoyw-1; Mon, 29 Aug 2022 08:26:53 -0400 X-MC-Unique: sA1RuC5OM3SuumZsoyMoyw-1 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.rdu2.redhat.com [10.11.54.6]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id DDAD538041C1 for ; Mon, 29 Aug 2022 12:26:52 +0000 (UTC) Received: from oldenburg.str.redhat.com (unknown [10.39.192.190]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 7F3042166B26 for ; Mon, 29 Aug 2022 12:26:52 +0000 (UTC) From: Florian Weimer To: libc-alpha@sourceware.org Subject: [PATCH v4 0/3] Rework exception handling in the dynamic loader [BZ #25486] X-From-Line: 9d3fa17f81bdcc18cfd6a220c6158efb902ad511 Mon Sep 17 00:00:00 2001 Message-Id: Date: Mon, 29 Aug 2022 14:26:51 +0200 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.78 on 10.11.54.6 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 X-Spam-Status: No, score=-5.5 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE,SPF_NONE,TXREP,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: This is a rebase on the current tree. No real changed compared to the previously posted version. This change is a pre-requisite for moving more loader functionality into ld.so. Tested on x86_64-linux-gnu. Thanks, Florian Florian Weimer (3): ld.so: Export tls_init_tp_called as __rtld_tls_init_tp_called scripts/localplt.awk: Handle DT_JMPREL with empty PLT (for C-SKY) elf: Rework exception handling in the dynamic loader [BZ #25486] elf/Makefile | 3 +- elf/Versions | 8 +- elf/{dl-error-skeleton.c => dl-catch.c} | 150 +++++++++--------- elf/dl-error-minimal.c | 23 --- elf/dl-error.c | 27 ---- elf/rtld.c | 12 +- nptl/descr.h | 3 + scripts/localplt.awk | 18 ++- sysdeps/generic/ldsodefs.h | 15 +- sysdeps/generic/localplt.data | 5 - sysdeps/mach/hurd/i386/localplt.data | 5 - sysdeps/mach/hurd/i386/tls.h | 3 + sysdeps/unix/sysv/linux/aarch64/localplt.data | 5 - sysdeps/unix/sysv/linux/alpha/localplt.data | 5 - sysdeps/unix/sysv/linux/arc/localplt.data | 5 - sysdeps/unix/sysv/linux/arm/localplt.data | 5 - sysdeps/unix/sysv/linux/csky/localplt.data | 5 - sysdeps/unix/sysv/linux/hppa/localplt.data | 5 - sysdeps/unix/sysv/linux/i386/localplt.data | 5 - sysdeps/unix/sysv/linux/ia64/localplt.data | 5 - .../sysv/linux/m68k/coldfire/localplt.data | 5 - .../unix/sysv/linux/m68k/m680x0/localplt.data | 5 - .../unix/sysv/linux/microblaze/localplt.data | 5 - sysdeps/unix/sysv/linux/nios2/localplt.data | 5 - .../linux/powerpc/powerpc32/fpu/localplt.data | 5 - .../powerpc/powerpc32/nofpu/localplt.data | 5 - .../linux/powerpc/powerpc64/localplt.data | 5 - sysdeps/unix/sysv/linux/riscv/localplt.data | 5 - sysdeps/unix/sysv/linux/s390/localplt.data | 5 - sysdeps/unix/sysv/linux/sh/localplt.data | 5 - .../sysv/linux/sparc/sparc32/localplt.data | 5 - .../sysv/linux/sparc/sparc64/localplt.data | 5 - sysdeps/x86_64/localplt.data | 5 - 33 files changed, 108 insertions(+), 269 deletions(-) rename elf/{dl-error-skeleton.c => dl-catch.c} (76%) delete mode 100644 elf/dl-error-minimal.c delete mode 100644 elf/dl-error.c base-commit: d0e357ff45a75553dee3b17ed7d303bfa544f6fe -- 2.37.2