diff options
Diffstat (limited to 'libc/src/__support/linux/entrypoint_macro.h.inc')
-rw-r--r-- | libc/src/__support/linux/entrypoint_macro.h.inc | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/libc/src/__support/linux/entrypoint_macro.h.inc b/libc/src/__support/linux/entrypoint_macro.h.inc new file mode 100644 index 00000000000..8f873f90b48 --- /dev/null +++ b/libc/src/__support/linux/entrypoint_macro.h.inc @@ -0,0 +1,13 @@ +//===---- Definition of LLVM_LIBC_ENTRYPOINT macro for ELF paltforms ----*-===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +// +//===----------------------------------------------------------------------===// + +%%begin() + +#define ENTRYPOINT_SECTION_ATTRIBUTE(name) \ + __attribute__((section(".llvm.libc.entrypoint."#name))) +#define LLVM_LIBC_ENTRYPOINT(name) ENTRYPOINT_SECTION_ATTRIBUTE(name) name |