File: reloc2lib2.c

package info (click to toggle)
prelink 0.0.20061027-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 3,716 kB
  • ctags: 2,061
  • sloc: ansic: 24,381; sh: 11,286; makefile: 169; cpp: 103
file content (15 lines) | stat: -rw-r--r-- 300 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
extern int f1 (int dummy);

int f2 (int add)
{
  if (add)
    return f1 (0) + 26;
  return f1 (0);
}

/* Make sure conflict in f3 is not against read-only segment.  */
asm (".section trampoline, \"awx\"; .previous");
void * __attribute__((section ("trampoline"))) f3 (void)
{
  return (void *) f3;
}