From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ej1-f52.google.com (mail-ej1-f52.google.com [209.85.218.52]) by sourceware.org (Postfix) with ESMTPS id C51053858D34 for ; Fri, 8 May 2020 16:44:19 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org C51053858D34 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=rtems.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=joel.sherrill@gmail.com Received: by mail-ej1-f52.google.com with SMTP id s3so1747401eji.6 for ; Fri, 08 May 2020 09:44:19 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:reply-to :from:date:message-id:subject:to:cc; bh=1AoYIHxeN5itK0DScpn5+Kgx05cGTO03E/Zmf7JXQkY=; b=R9GE2LuZGPYGIUxjybk+JcD7R1NiQeW1RjdeLVt1PRYVJiSXA6hc6vTGeXuSHSopxT L363z/CXAnYLMQ06aImdHyDOQCQUZ38psbwPMeftJn3/6TqnO4EcYh8uWObV9JkIp+hV FY05cjIc8RB3Pwn0fqviUxBzKdtUhpGalEL/4NW8pXj0YChMFi2GhMPG4hXXWNNxQH5p qDFw33GF3976yWmSZ6e7ZyitcYFITdJBauEQ50SWYlN0aGTg1RKgriugMbyS32+D6kAF aArdC/uA6s54+UNypYEpK9kEscxuZv6vZNpzy+87Q7P88ZR4yT6xEuzYiwxOzLWO4H1j 1q1g== X-Gm-Message-State: AGi0PuZeAaKsrkOecO6EXSD1MOhxUjlvO1V/SEbyqbX+p9B62j6u16G/ U8pamkAhlTje/Aj3oTFC2oOgfxVM X-Google-Smtp-Source: APiQypI3Xalx7WEz76mDN4v7shvWex21l4ffltAZKnVwDJYTbU+KkVrx1Q7tFBsLqzG8Wg+ybfqCJA== X-Received: by 2002:a17:906:16ce:: with SMTP id t14mr2690681ejd.366.1588956258536; Fri, 08 May 2020 09:44:18 -0700 (PDT) Received: from mail-ed1-f53.google.com (mail-ed1-f53.google.com. [209.85.208.53]) by smtp.gmail.com with ESMTPSA id b15sm238036ejz.32.2020.05.08.09.44.18 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 08 May 2020 09:44:18 -0700 (PDT) Received: by mail-ed1-f53.google.com with SMTP id y24so1755264edo.0 for ; Fri, 08 May 2020 09:44:18 -0700 (PDT) X-Received: by 2002:aa7:dc4b:: with SMTP id g11mr2769122edu.223.1588956258213; Fri, 08 May 2020 09:44:18 -0700 (PDT) MIME-Version: 1.0 References: <61220f48-c08e-2da0-81ed-0ea05eb8d082@linaro.org> In-Reply-To: <61220f48-c08e-2da0-81ed-0ea05eb8d082@linaro.org> Reply-To: joel@rtems.org From: Joel Sherrill Date: Fri, 8 May 2020 11:44:01 -0500 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: Running programs on aarch64 simulator To: Luis Machado Cc: gdb@sourceware.org X-Spam-Status: No, score=-1.5 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS, HTML_MESSAGE, KAM_DMARC_STATUS, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=no autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: gdb@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 May 2020 16:44:23 -0000 On Fri, May 8, 2020 at 11:16 AM Luis Machado wrote: > On 5/8/20 10:44 AM, Joel Sherrill wrote: > > Hi > > > > Can someone please provide an example of how to compile a program to run > on > > the aarch64 simulator in gdb? The simple "aarch64-elf main.c -o main" > does > > not link and appears to be missing libgloss type symbols. > > > > I asked on newlib but got no response. I'm hoping someone here knows. > > > > Thanks. > > > > --joel > > RTEMS > > > > Would QEMU be a better option to exercise some bare-metal programs? The > GDB simulator has not been receiving a lot of maintenance. > Long term it is a better option but the gdb simulators have proven more than sufficient to work through the basic issues of an RTEMS port and they are quite simple to use. You can get initialization, context switch, etc. Definitely have to move to Qemu to get interrupts worked out and real device drivers. --joel