File: dietuglyweaks.h

package info (click to toggle)
dietlibc 0.34~cvs20160606-10
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 11,336 kB
  • sloc: ansic: 71,631; asm: 13,006; cpp: 1,860; makefile: 799; sh: 292; perl: 62
file content (54 lines) | stat: -rw-r--r-- 810 bytes parent folder | download | duplicates (2)
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
#ifndef __DIET_UGLY_WEAKS__
#define __DIET_UGLY_WEAKS__

/* if you change something here ... KNOW what you're doing !
 * it'll effect ALL platforms ! */

#ifdef __clang__
.macro DEF_G name
.global \name
#ifdef __PIE__
.hidden \name
#endif
.type \name,@function
\name:
.endm
.macro DEF_W name
.weak \name
#ifdef __PIE__
.hidden \name
#endif
.type \name,@function
\name:
.endm
#else
.macro DEF_G name
.global \name
#ifdef __PIE__
.hidden \name
#endif
.type \name,function
\name:
.endm
.macro DEF_W name
.weak \name
#ifdef __PIE__
.hidden \name
#endif
.type \name,function
\name:
.endm
#endif

DEF_W __fflush_stderr
DEF_W __fflush_stdin
DEF_W __fflush_stdout
DEF_W __nop
DEF_W __thread_doexit
DEF_W flockfile
DEF_W ftrylockfile
DEF_W funlockfile

DEF_G __you_tried_to_link_a_dietlibc_object_against_glibc

#endif