From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pj1-x1029.google.com (mail-pj1-x1029.google.com [IPv6:2607:f8b0:4864:20::1029]) by sourceware.org (Postfix) with ESMTPS id B9341384C35A for ; Fri, 16 Dec 2022 21:31:35 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org B9341384C35A Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-pj1-x1029.google.com with SMTP id e7-20020a17090a77c700b00216928a3917so7360329pjs.4 for ; Fri, 16 Dec 2022 13:31:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:from:to:cc:subject:date:message-id:reply-to; bh=96JXgaedhrMC5RkhfuZbF0V64+LfgK/pO2oIXE9+Qag=; b=OE738ScunTYz7Qr4JFuJjPXzQU3f1T/7i3fi90y2gPAem6IDLC3SBs1tJw/ucuKr26 4o43fHnT8YeG57+XoBTFs6hZMEkj/4Lr/+ghQEoPRHITdLCRUen0q6cEqXBHKo2aJdi6 5d6aNGexMbi6Uc9lhfqjFxpGo2mJT5MF3jGbdPU3xEd/DmKYrWyCCKvn3SSSH293PYCt eqcVvlbbDezRQzhu4c2/TTaZDy+nB4cdPpsIM0RysCe/NzzaFXDHznM96h5ZnoWPcyav 1koaPWSVgXvmoX9GIvhLHoFN0YMufSOzafc18FY5VCMOW2YXcH7FZPMQtgzpBLRca9Kp sazQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=96JXgaedhrMC5RkhfuZbF0V64+LfgK/pO2oIXE9+Qag=; b=CzJBc8JVJAjQ3WGPUPI0QfBTN3ZUpS7QvxJIXfbLF69tPATus8swnKl1DST9fsrIyu /4dz1fOXUJq5UOxiCvVNZ2WwVwxKxypOGtkj9OJazqoh7KcAbIPz9FZZPZSH1YDVDvsY 8wI6yBkb96n0FF8i4tBiOitc7My1vCo6+sqV6N697GApBkHM1yQuiq0Hj67dN5ZLe1PV rVEQuEjo2W5w/zJ+uxKwWEEFc5SjcPUmtPVXE7hHFMMU5tQ5sXSYEvZgS6gJXaY8UGTX GecDvLi+a3IzcsE81TPQz6EStrmgfytVri+KJHmytYVaxIs6e3gxMb45NS9JbQ1HOfa9 7gEw== X-Gm-Message-State: ANoB5pnfsywQK1pI40XO/K22J5gRR/fPhvjKkDN/FgJLjKCIuXKYWk0N QLzZyhpaAZ/CYNftyMSc0Rjhwyuzgbc= X-Google-Smtp-Source: AA0mqf4vwGNU/GD4OKR0jb6kNu6gx1R4Pr8lSyOS+S2GfhE9MXGu7F/Fwre/LTjQ+vl3TuVhGRVsKQ== X-Received: by 2002:a17:90b:3102:b0:219:22da:1fee with SMTP id gc2-20020a17090b310200b0021922da1feemr34703523pjb.38.1671226294427; Fri, 16 Dec 2022 13:31:34 -0800 (PST) Received: from gnu-cfl-3.localdomain ([172.56.30.207]) by smtp.gmail.com with ESMTPSA id mp6-20020a17090b190600b00218abadb6a8sm1768293pjb.49.2022.12.16.13.31.33 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 16 Dec 2022 13:31:33 -0800 (PST) Received: from gnu-cfl-3.. (localhost [IPv6:::1]) by gnu-cfl-3.localdomain (Postfix) with ESMTP id 2E80D740091 for ; Fri, 16 Dec 2022 13:31:32 -0800 (PST) From: "H.J. Lu" To: gcc-patches@gcc.gnu.org Subject: [PATCH] libsanitizer: Add __interceptor_sigsetjmp_internal Date: Fri, 16 Dec 2022 13:31:32 -0800 Message-Id: <20221216213132.578277-1-hjl.tools@gmail.com> X-Mailer: git-send-email 2.38.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-3023.9 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,GIT_PATCH_0,RCVD_IN_BARRACUDACENTRAL,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,TXREP 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: Add an internal alias to __interceptor_sigsetjmp to avoid R_X86_64_PC32 relocation for "jmp __interceptor_sigsetjmp" with old assemblers. PR sanitizer/108106 * hwasan/hwasan_setjmp_x86_64.S (__interceptor_sigsetjmp): Add an internal alias, __interceptor_sigsetjmp_internal. --- libsanitizer/hwasan/hwasan_setjmp_x86_64.S | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libsanitizer/hwasan/hwasan_setjmp_x86_64.S b/libsanitizer/hwasan/hwasan_setjmp_x86_64.S index 7566c1ea0a5..071dcdcf613 100644 --- a/libsanitizer/hwasan/hwasan_setjmp_x86_64.S +++ b/libsanitizer/hwasan/hwasan_setjmp_x86_64.S @@ -37,13 +37,14 @@ __interceptor_setjmp: CFI_STARTPROC _CET_ENDBR xorl %esi, %esi - jmp __interceptor_sigsetjmp + jmp __interceptor_sigsetjmp_internal CFI_ENDPROC ASM_SIZE(__interceptor_setjmp) .global __interceptor_sigsetjmp ASM_TYPE_FUNCTION(__interceptor_sigsetjmp) __interceptor_sigsetjmp: +__interceptor_sigsetjmp_internal: CFI_STARTPROC _CET_ENDBR -- 2.38.1