199282790SJohn Baldwin/*- 299282790SJohn Baldwin * SPDX-License-Identifier: BSD-1-Clause 399282790SJohn Baldwin * 499282790SJohn Baldwin * Copyright 2012 Konstantin Belousov <kib@FreeBSD.org> 599282790SJohn Baldwin * Copyright (c) 2018 The FreeBSD Foundation 699282790SJohn Baldwin * 799282790SJohn Baldwin * Parts of this software was developed by Konstantin Belousov 899282790SJohn Baldwin * <kib@FreeBSD.org> under sponsorship from the FreeBSD Foundation. 999282790SJohn Baldwin * 1099282790SJohn Baldwin * Redistribution and use in source and binary forms, with or without 1199282790SJohn Baldwin * modification, are permitted provided that the following conditions 1299282790SJohn Baldwin * are met: 1399282790SJohn Baldwin * 1. Redistributions of source code must retain the above copyright 1499282790SJohn Baldwin * notice, this list of conditions and the following disclaimer. 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/elf_common.h> 3099282790SJohn Baldwin 3199282790SJohn Baldwin#include "notes.h" 3299282790SJohn Baldwin 33*6700e2d9SKonstantin Belousov .section .note.tag,"aR",%note 3499282790SJohn Baldwin .p2align 2 3599282790SJohn Baldwin .4byte 2f-1f 3699282790SJohn Baldwin .4byte 4f-3f 3799282790SJohn Baldwin .4byte NT_FREEBSD_NOINIT_TAG 3899282790SJohn Baldwin1: .asciz NOTE_FREEBSD_VENDOR 3999282790SJohn Baldwin2: .p2align 2 4099282790SJohn Baldwin3: .4byte 0 4199282790SJohn Baldwin4: 4274ad8d60SJohn Baldwin 4374ad8d60SJohn Baldwin .section .note.GNU-stack,"",%progbits 44522126feSAndrew Turner 45522126feSAndrew Turner#ifdef __aarch64__ 46522126feSAndrew Turner/* This is needed in all objects for BTI to be used in the linked elf file */ 47522126feSAndrew TurnerGNU_PROPERTY_AARCH64_FEATURE_1_NOTE(GNU_PROPERTY_AARCH64_FEATURE_1_VAL) 48522126feSAndrew Turner#endif 49