xref: /freebsd/sys/arm/arm/elf_note.S (revision 685dc743dc3b5645e34836464128e1c0558b404b)
1*5c8f95d5SAndrew Turner/*-
2*5c8f95d5SAndrew Turner * Copyright (c) 2014 Andrew Turner <andrew@FreeBSD.org>
3*5c8f95d5SAndrew Turner * All rights reserved.
4*5c8f95d5SAndrew Turner *
5*5c8f95d5SAndrew Turner * Redistribution and use in source and binary forms, with or without
6*5c8f95d5SAndrew Turner * modification, are permitted provided that the following conditions
7*5c8f95d5SAndrew Turner * are met:
8*5c8f95d5SAndrew Turner * 1. Redistributions of source code must retain the above copyright
9*5c8f95d5SAndrew Turner * notice, this list of conditions and the following disclaimer.
10*5c8f95d5SAndrew Turner * 2. Redistributions in binary form must reproduce the above copyright
11*5c8f95d5SAndrew Turner * notice, this list of conditions and the following disclaimer in the
12*5c8f95d5SAndrew Turner * documentation and/or other materials provided with the distribution.
13*5c8f95d5SAndrew Turner *
14*5c8f95d5SAndrew Turner * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
15*5c8f95d5SAndrew Turner * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
16*5c8f95d5SAndrew Turner * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
17*5c8f95d5SAndrew Turner * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
18*5c8f95d5SAndrew Turner * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19*5c8f95d5SAndrew Turner * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20*5c8f95d5SAndrew Turner * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21*5c8f95d5SAndrew Turner * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22*5c8f95d5SAndrew Turner * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23*5c8f95d5SAndrew Turner * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24*5c8f95d5SAndrew Turner * SUCH DAMAGE.
25*5c8f95d5SAndrew Turner *
26*5c8f95d5SAndrew Turner */
27*5c8f95d5SAndrew Turner
28*5c8f95d5SAndrew Turner#include <machine/asm.h>
29*5c8f95d5SAndrew Turner#include <sys/param.h>
30*5c8f95d5SAndrew Turner#include <machine/asmacros.h>
31*5c8f95d5SAndrew Turner
32*5c8f95d5SAndrew Turner/* An ELF note so GDB detects this as a FreeBSD elf file */
33*5c8f95d5SAndrew TurnerELFNOTE(.note.tag, 1, "FreeBSD", .long, __FreeBSD_version);
34*5c8f95d5SAndrew Turner
35