1// Copyright 2016 The Fuchsia Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#ifndef __ASM_H
6#define __ASM_H
7
8#define FUNCTION(x)    \
9    .global x;         \
10    .type x, STT_FUNC; \
11    x:
12#define DATA(x)          \
13    .global x;           \
14    .type x, STT_OBJECT; \
15    x:
16
17#define LOCAL_FUNCTION(x) \
18    .type x, STT_FUNC;    \
19    x:
20#define LOCAL_DATA(x)    \
21    .type x, STT_OBJECT; \
22    x:
23
24#define END(x) .size x, .- x
25
26#endif
27