File: foo.c

package info (click to toggle)
patchelf 0.8-2
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 692 kB
  • ctags: 2,011
  • sloc: cpp: 2,825; sh: 1,587; makefile: 63; ansic: 32
file content (13 lines) | stat: -rw-r--r-- 282 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
#include <stdio.h>

/* Include a bogus .interp section in libfoo.so (NIXPKGS-98).
   Borrowed from Glibc. */
const char __invoke_dynamic_linker__[] __attribute__ ((section (".interp"))) = "/foo/bar";

int bar();

int foo()
{
    printf("This is foo()!\n");
    return 12 + bar();
}