199282790SJohn Baldwin/*- 24d846d26SWarner Losh * SPDX-License-Identifier: BSD-2-Clause 399282790SJohn Baldwin * 499282790SJohn Baldwin * Copyright 2000 David E. O'Brien, John D. Polstra. 599282790SJohn Baldwin * All rights reserved. 699282790SJohn Baldwin * 799282790SJohn Baldwin * Redistribution and use in source and binary forms, with or without 899282790SJohn Baldwin * modification, are permitted provided that the following conditions 999282790SJohn Baldwin * are met: 1099282790SJohn Baldwin * 1. Redistributions of source code must retain the above copyright 1199282790SJohn Baldwin * notice, this list of conditions and the following disclaimer. 1299282790SJohn Baldwin * 2. Redistributions in binary form must reproduce the above copyright 1399282790SJohn Baldwin * notice, this list of conditions and the following disclaimer in the 1499282790SJohn Baldwin * documentation and/or other materials provided with the distribution. 1599282790SJohn Baldwin * 1699282790SJohn Baldwin * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 1799282790SJohn Baldwin * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 1899282790SJohn Baldwin * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 1999282790SJohn Baldwin * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 2099282790SJohn Baldwin * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 2199282790SJohn Baldwin * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 2299282790SJohn Baldwin * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 2399282790SJohn Baldwin * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 2499282790SJohn Baldwin * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 2599282790SJohn Baldwin * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 2699282790SJohn Baldwin */ 2799282790SJohn Baldwin 2899282790SJohn Baldwin#include <machine/asm.h> 2999282790SJohn Baldwin#include <sys/param.h> 3099282790SJohn Baldwin#include <sys/elf_common.h> 3199282790SJohn Baldwin#include "notes.h" 3299282790SJohn Baldwin 3399282790SJohn Baldwin/* 3499282790SJohn Baldwin * Special ".note.tag" entry specifying the ABI version. See 3599282790SJohn Baldwin * http://www.netbsd.org/Documentation/kernel/elf-notes.html 3699282790SJohn Baldwin * for more information. 3799282790SJohn Baldwin */ 3899282790SJohn Baldwin 39*6700e2d9SKonstantin Belousov .section .note.tag,"aGR",%note,.freebsd.noteG,comdat 4099282790SJohn Baldwin .p2align 2 4199282790SJohn Baldwin .4byte 2f-1f 4299282790SJohn Baldwin .4byte 4f-3f 4399282790SJohn Baldwin .4byte NT_FREEBSD_ABI_TAG 4499282790SJohn Baldwin1: .asciz NOTE_FREEBSD_VENDOR 4599282790SJohn Baldwin2: .p2align 2 4699282790SJohn Baldwin3: .4byte __FreeBSD_version 4799282790SJohn Baldwin4: 4874ad8d60SJohn Baldwin 4974ad8d60SJohn Baldwin .section .note.GNU-stack,"",%progbits 50522126feSAndrew Turner 51522126feSAndrew Turner#ifdef __aarch64__ 52522126feSAndrew Turner/* This is needed in all objects for BTI to be used in the linked elf file */ 53522126feSAndrew TurnerGNU_PROPERTY_AARCH64_FEATURE_1_NOTE(GNU_PROPERTY_AARCH64_FEATURE_1_VAL) 54522126feSAndrew Turner#endif 55