From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS3215 2.6.0.0/16 X-Spam-Status: No, score=-3.2 required=3.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, PDS_OTHER_BAD_TLD,RCVD_IN_DNSWL_HI,SPF_HELO_PASS,SPF_PASS shortcircuit=no autolearn=no autolearn_force=no version=3.4.2 Received: from sourceware.org (server2.sourceware.org [IPv6:2620:52:3:1:0:246e:9693:128c]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id E38E51F8C6 for ; Mon, 26 Jul 2021 03:59:39 +0000 (UTC) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id F29D7385F030 for ; Mon, 26 Jul 2021 03:59:37 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org F29D7385F030 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1627271978; bh=6ir1ITnMLazHZlcWUDo20zG7JCoLZdzz9poTAHaYI9o=; h=Date:In-Reply-To:References:Subject:To:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc: From; b=QiRVMdFAxfvIt7byVOZmJugs3/N103rp8meiDkxADSTzqCz1a1z3CoKHVlX1VqdJo 26XA+Fp8UIW5GEW/dyToYnD+mywnPR9SNC5qhk/MSBWUWl4Hd4Jr3gHOxor2meacwp 077Dc7DUI9x1dIIDSRNnRumYRl6/A9D+dslx7wPs= Received: from mail-qv1-xf4a.google.com (mail-qv1-xf4a.google.com [IPv6:2607:f8b0:4864:20::f4a]) by sourceware.org (Postfix) with ESMTPS id AAEB13854809 for ; Mon, 26 Jul 2021 03:58:27 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org AAEB13854809 Received: by mail-qv1-xf4a.google.com with SMTP id t4-20020a0cef040000b02902e2f9404330so7194032qvr.9 for ; Sun, 25 Jul 2021 20:58:27 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:in-reply-to:message-id:mime-version :references:subject:from:to:cc; bh=6ir1ITnMLazHZlcWUDo20zG7JCoLZdzz9poTAHaYI9o=; b=rcq4eU/Wberp9Tlf35vvXeZk0+SZrVPkRxmHj+yRa5+uY9zHSlc8LB4KHDl7UsQUBC 03AWU88wPf6IkMGiRFMPRRf1ghYWEZe90hvOOKk/21ai3QkR1LL60oJfxqqwIhZYR0HU zcdKM9FcAf0Np3zD4blsXwCCuVffJNDaPd772vcHFQK82wz24HzPvDhLYUzyDUPhdEhn d+6FaIoGgWuqEZgVRHiHOhy5sVHJqp4TGcD2hEm1kHKzpOcxI3YZz72304EGz1qSEp9A HCBK20mNH54oHLA1w5MKoGuVnSBeb8WGVydKULImpisviKPpyFx3j679O+eiqPzbnMPz L7Yg== X-Gm-Message-State: AOAM530F+aN0gZ32RV66VvTExY5JyTAX1/WIEYnyO9W0CoTZ4u9Na86e Yj4XM+oNgTNtdzMUUDT3lEULJGV8xEDxHCOI5YICLOP8MmS1WFoFb+gYvHQ4yLvUle1GRoKKM4r ZIPyEj+7LzJN0r8NwQBJk9yALoh1iepGo4qMTiCN+uIuA9Ib4flBsZySQ0y/aEp+6Aj5B X-Google-Smtp-Source: ABdhPJzFjG7cL5VTk9hOtNJJEzmWMMst/jw/ICnPrQhTIj282nChUYFUvb1Y4iqYGA1kaOg+u9q3RZaiMsDp X-Received: from maskray1.svl.corp.google.com ([2620:15c:2ce:200:565c:23d5:ef81:9e9d]) (user=maskray job=sendgmr) by 2002:a05:6214:1909:: with SMTP id er9mr8312878qvb.26.1627271907153; Sun, 25 Jul 2021 20:58:27 -0700 (PDT) Date: Sun, 25 Jul 2021 20:58:00 -0700 In-Reply-To: <20210726035802.275992-1-maskray@google.com> Message-Id: <20210726035802.275992-2-maskray@google.com> Mime-Version: 1.0 References: <20210726035802.275992-1-maskray@google.com> Subject: [PATCH 1/3] elf: Replace .tls_common with .tbss definition To: libc-alpha@sourceware.org Content-Type: text/plain; charset="UTF-8" X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Fangrui Song via Libc-alpha Reply-To: Fangrui Song Cc: Fangrui Song Errors-To: libc-alpha-bounces+e=80x24.org@sourceware.org Sender: "Libc-alpha" .tls_common is obsoleted, not supported by clang -fintegrated-as or ld.lld. Just change it to .tbss for portability. --- elf/tls-macros.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/elf/tls-macros.h b/elf/tls-macros.h index e25e33b0f0..a637407417 100644 --- a/elf/tls-macros.h +++ b/elf/tls-macros.h @@ -1,7 +1,11 @@ /* Macros to support TLS testing in times of missing compiler support. */ #define COMMON_INT_DEF(x) \ - asm (".tls_common " #x ",4,4") + asm (".section .tbss\n\t" \ + ".globl " #x "\n\t" \ + ".balign 4\n\t" \ + #x ":\t.space 4\n\t" \ + ".previous") /* XXX Until we get compiler support we don't need declarations. */ #define COMMON_INT_DECL(x) -- 2.32.0.432.gabb21c7263-goog