From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ej1-x62b.google.com (mail-ej1-x62b.google.com [IPv6:2a00:1450:4864:20::62b]) by sourceware.org (Postfix) with ESMTPS id A60D23858D38 for ; Fri, 12 Apr 2024 15:14:33 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org A60D23858D38 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org A60D23858D38 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2a00:1450:4864:20::62b ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1712934875; cv=none; b=hBzYpNc5MlxbfdTzr7QeZE0NC8do5dyscm3GXu8mrPwxrFN8R6NWuJBnyyna3Sl5GVer1HbURTQDv8mtMQdarIrAaVES21onZ2pjSCNwZyFPc/2O2o2E0VnKirBfSA/5SbD1NZz8xhiH1Tmn1vUXqV4HMgP/1ReKlGrzAgs7pfE= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1712934875; c=relaxed/simple; bh=21T3w9Itp5XHeSwsNLctNgG64z8CCWpN/d9KcWGiyHQ=; h=DKIM-Signature:MIME-Version:From:Date:Message-ID:Subject:To; b=djd0waz7nODWA6+ebe8e/kr3EQ78HMa+eurTflt/lYhscDuiYJGrZO2AXpDHmcsmAisMlpwk0MbZGJwGmZ3P2y/jzmoEAOwZAuY389N1pzeMxO9qUXV2wmusz7qVmsBKL3QH5Xwc99nL760PtJycTbTj87iJIbIIrrw32h1/tZg= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-ej1-x62b.google.com with SMTP id a640c23a62f3a-a5200202c1bso114575366b.0 for ; Fri, 12 Apr 2024 08:14:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1712934872; x=1713539672; darn=gcc.gnu.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=21T3w9Itp5XHeSwsNLctNgG64z8CCWpN/d9KcWGiyHQ=; b=lIIVc7u8fzkvffdThq9sHACtO9cdecQhhmE2ze10281GxR/mHx+Heh1N5791Bw799n YK1i7EEiG8t/0lwAWSwsb6SOUXGGoz/9yrFhWbI5oYO4JvKspYG+rGY1Gyt9NaSmCb4f rMkXzebxG92YGNkAx8Vjcj3kFblEA0VW5aRhACzNpMI5A/5zyACWmvobfIiJWzXbxszz uGQlWx8scYAuKhVmrU/sFMBA5DHksH66QYqNC/SGJPoFVbJ+/tmrJSDo0LOAkGjMUx6U iEe3DPzy29rOJSV+t54DnV465mlTKb/4NwM2ypasBHzzwqgc2UUjS/UKxhrGVT0B60AL 07xA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712934872; x=1713539672; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=21T3w9Itp5XHeSwsNLctNgG64z8CCWpN/d9KcWGiyHQ=; b=kiElKTzgRoAkmaMcPuvYxPqXKDvYAphDkLNxN333Gr/W0Oado9tQLE7nkToZGVLAXU NsBhbpVAodYM6aoFR5jMc35NQb3WyGSoHUwsNF4w7H3rew2o3wFWWzedLtg8V/Cnlfs9 SnArES6bhDdXCkItWG2zMtXB+iJWbFbnHrOv/nFG4l3HIlaidBeKLdnyj1ejQdjPFuLl ypRI+uQaRzcqORmt8VCQjiAygS3VU2THBzfe8GNNRxs3VanqligWh4pigrHqsioJcShb skz7gJvgBvrBwbxkDFXqtWYyHa/colC/1WnwHJDcdXifKRu8JgtEejo8NfEhDF95dicz wc8g== X-Gm-Message-State: AOJu0YwQezRvD5hNPflQ81bejDEj53qBxorWcphOZi2ihuqgLrpiUZTX p3GtiIi+vRgVuDgBDQoTk3+hyuRk+RMdxaYRm64jIEmXzxgeu3huyS514maqXd8GBGGYpKkbgpN ietairTnWmekkaOTapFaYecHyckW1yg== X-Google-Smtp-Source: AGHT+IHDN/2gTj4j2lUdDt+phKdl3WhqOcfwRUFDbC0JOILRDZwcIHGFFN3J0lO8IwEfD6CHahKcG0aRTDuyl48DJww= X-Received: by 2002:a17:906:ee87:b0:a52:3d27:2040 with SMTP id wt7-20020a170906ee8700b00a523d272040mr1145916ejb.38.1712934872147; Fri, 12 Apr 2024 08:14:32 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Jonathan Wakely Date: Fri, 12 Apr 2024 16:14:18 +0100 Message-ID: Subject: Re: Difference between *-none-elf and *-linux-gnu configurations To: Johannes Krottmayer Cc: gcc-help Content-Type: multipart/alternative; boundary="00000000000093eea80615e7babf" X-Spam-Status: No, score=-0.8 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,HTML_MESSAGE,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: --00000000000093eea80615e7babf Content-Type: text/plain; charset="UTF-8" On Fri, 12 Apr 2024, 15:26 Johannes Krottmayer via Gcc-help, < gcc-help@gcc.gnu.org> wrote: > Hi! > > Sorry if already asked, but what are the differences from as example > x86_64-none-elf and x86_64-linux-gnu configurations? > The former is a bare metal "freestanding" target that generates code for a system without an OS or C library. The latter is a "hosted" target that uses the Linux kernel and Glibc C library. > I have tried to compile Linux with a x86_64-none-elf build, but failed with > assembler errors. (It's might be also a binutils question.) With the > x86_64-linux-gnu build, everything worked fine. > You need a binutils configured for x86_64-none-elf to assemble and link code compiled for that target. > Can somebody explain me the key differences between this both builds? > Unfortunately I currently didn't find any information. > > Thanks in advance! > > Kind regards, > > Johannes > --00000000000093eea80615e7babf--