summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/m68k/sysdep.h
blob: 9c18aae972be305dd2460a95ef9b7d9815201f4b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#include <common/sysdep.h>

#ifdef __ASSEMBLER__

/* Define an entry point visible from C.

   There is currently a bug in gdb which prevents us from specifying
   incomplete stabs information.  Fake some entries here which specify
   the current source file.  */
# define ENTRY(name)							      \
  .globl C_SYMBOL_NAME(name);						      \
  .type C_SYMBOL_NAME(name),@function;					      \
  .p2align 2;								      \
  C_LABEL(name)								      \
  cfi_startproc;							      \

# undef END
# define END(name)							      \
  cfi_endproc;								      \
  .size name,.-name

/* Load the address of the GOT into register R.  */
# define LOAD_GOT(R) \
  lea _GLOBAL_OFFSET_TABLE_@GOTPC (%pc), R

#endif