mirror of
https://github.com/Noratrieb/website.git
synced 2026-01-16 01:45:02 +01:00
move submodules in-tree
This commit is contained in:
parent
57c4a239da
commit
830045ee2f
238 changed files with 41955 additions and 187 deletions
4
blog/helpers/elf-linkage/testing/a.c
Normal file
4
blog/helpers/elf-linkage/testing/a.c
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
void dependency();
|
||||
int main() {
|
||||
dependency();
|
||||
}
|
||||
1
blog/helpers/elf-linkage/testing/b.c
Normal file
1
blog/helpers/elf-linkage/testing/b.c
Normal file
|
|
@ -0,0 +1 @@
|
|||
void dependency() {}
|
||||
16
blog/helpers/elf-linkage/testing/multi/Makefile
Normal file
16
blog/helpers/elf-linkage/testing/multi/Makefile
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
main: multia.c libmultib.a libmultic.a libmultib.so libmultic.so
|
||||
cc multia.c -L. -Bdynamic -lmultib -lmultic -fuse-ld=lld
|
||||
|
||||
libmultib.so: multib.c
|
||||
cc -fPIC multib.c -shared -o libmultib.so
|
||||
|
||||
libmultic.so: multic.c
|
||||
cc -fPIC multic.c -shared -o libmultic.so
|
||||
|
||||
libmultib.a: multib.c
|
||||
cc -c multib.c
|
||||
ar -rcs libmultib.a multib.o
|
||||
|
||||
libmultic.a: multic.c
|
||||
cc -c multic.c
|
||||
ar -rcs libmultic.a multic.o
|
||||
9
blog/helpers/elf-linkage/testing/multi/multia.c
Normal file
9
blog/helpers/elf-linkage/testing/multi/multia.c
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
#include <stdio.h>
|
||||
void conflict();
|
||||
void usec();
|
||||
void useb();
|
||||
int main() {
|
||||
usec();
|
||||
useb();
|
||||
conflict();
|
||||
}
|
||||
6
blog/helpers/elf-linkage/testing/multi/multib.c
Normal file
6
blog/helpers/elf-linkage/testing/multi/multib.c
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
#include <stdio.h>
|
||||
__attribute__((weak))
|
||||
void conflict() {
|
||||
puts("b");
|
||||
}
|
||||
void useb(){}
|
||||
8
blog/helpers/elf-linkage/testing/multi/multic.c
Normal file
8
blog/helpers/elf-linkage/testing/multi/multic.c
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
#include <stdio.h>
|
||||
void conflict() {
|
||||
puts("C");
|
||||
|
||||
}
|
||||
|
||||
void usec(){
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue