blob: 2e64bf90c5ce5ee8c382b74df4d3d911369ec8ef (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
// This function will be embedded within the .symtab section of the
// .gnu_debugdata section.
int functionInSymtab(int num) { return num * 4; }
// This function will be embedded within the .dynsym section of the main binary.
int functionInDynsym(int num) { return num * 3; }
int main(int argc, char *argv[]) {
int x = functionInSymtab(argc);
int y = functionInDynsym(x);
return y;
}
|