From owner-freebsd-current@freebsd.org Sun Aug 12 14:02:56 2018 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 98162107141C for ; Sun, 12 Aug 2018 14:02:56 +0000 (UTC) (envelope-from gurenchan@gmail.com) Received: from mail-it0-x22c.google.com (mail-it0-x22c.google.com [IPv6:2607:f8b0:4001:c0b::22c]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 5BE7B899AB; Sun, 12 Aug 2018 14:02:53 +0000 (UTC) (envelope-from gurenchan@gmail.com) Received: by mail-it0-x22c.google.com with SMTP id d10-v6so8934501itj.5; Sun, 12 Aug 2018 07:02:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=xwjZnn90pQI9Eqci2U13Klp+HHFOVIBR7x+t1DRSccA=; b=P3IPSf/W32Nm3UU7nrHMcsmI75sPDe+i9pCAzljF5vkMOuPEdpyWEKkDqC4MxfIP7p guf22/8D+DUJ7Fa8+zO87eySzLJgcc3b/WsrpzXrROKy/yMBZzvVkSUuP7nLCA1Rmm5R 9UhwaiCW+RxmgHeAp3Emnz8oPQ+n5x8uA7GXqjWKT27uTHLigfGrtqglwLeN3m4I2+4E JQZcek5q8NgnfjlgweT0EKoFLhWhDa0bSJrnGgYEok1LbUgSRX8uj2YOkgYOFTeNOu1k Lx5NWYGEZaZ0LsWiY4Ym8EJ+pYoN0tgrz8r69zBEBFSf/mV0Ef0iJHSyQNyLuceugOj5 d7fA== 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:from:date :message-id:subject:to:cc; bh=xwjZnn90pQI9Eqci2U13Klp+HHFOVIBR7x+t1DRSccA=; b=n9k/aRPkH6B2mSKcGfSmgfEfOSDjJ5l8JErwhcSqmNWW4+/CN8gXXO/AfpatDtRdHJ JKJq4uAKGjVxXCVuCuTRg+lheoaZ9nESznPXZ8uqKjelRqBxvgEZbRa/n5paxOVvAu7K vOvfaGJba/us8Dsvkz0Jd9UITOGFY+SRsDBx+MI+rKE6jAv++1jKGPEVLhxPEhUfdPvY DHt3X8qd3bXfp0a/zvb+PBOPtOZPUtSgO+62dN+3V7eTUjEYCgv2vmP8InKY8r+rZpmx 5uVBG597FxpkD92CqlVoMfVqxdytzpUYWrQj4enAz1ka40w68zszSySYv+60kJszBmF8 Kwiw== X-Gm-Message-State: AOUpUlG1whlx36KiOvev+lA/K4VTfTdpEsLr8jGrGopupgD3DB/kDObK pP7xuxn3t5t47bp9cS8Z49oIpr1Vz4snVn9a7JnTFw== X-Google-Smtp-Source: AA+uWPxEdUXuXt1voYfeXBPRJ5XW0l1DNQ6w02nWNFdXrCRgq0ZgFIYYXW8hlG/ueQnrQM7NNfU9VoRJbVmPbNZlVHE= X-Received: by 2002:a02:6a2f:: with SMTP id l47-v6mr12066945jac.71.1534082572215; Sun, 12 Aug 2018 07:02:52 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: blubee blubeeme Date: Sun, 12 Aug 2018 22:02:41 +0800 Message-ID: Subject: Re: FreeBSD elf_machine_id To: Dimitry Andric Cc: FreeBSD current Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.27 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 12 Aug 2018 14:02:56 -0000 On Sun, Aug 12, 2018 at 9:59 PM blubee blubeeme wrote: > > > On Sun, Aug 12, 2018 at 7:43 PM Dimitry Andric wrote: > >> On 12 Aug 2018, at 13:21, blubee blubeeme wrote: >> > >> > What's the elf_machine_id for FreeBSD amd64 systems? >> > >> > How can I find this info? >> >> There isn't any FreeBSD-specific machine ID, just a machine ID for >> x86-64 (aka amd64) in general: >> >> $ grep x86-64 /usr/include/sys/elf_common.h >> #define EM_X86_64 62 /* Advanced Micro Devices x86-64 */ >> #define EM_AMD64 EM_X86_64 /* Advanced Micro Devices x86-64 >> (compat) */ >> >> -Dimitry >> >> Thank you for the clarification. > > I think in this case I was looking for 62. > > Best, > Owen > Actually I had another quick question along these lines. if x86_64 is already defined should I bother changing those to amd64 or just use x86_64 and make FreeBSD modifications where Linux specifics are defined? Best, Owen