728x90
반응형
https://asung123456.tistory.com/18
Ubuntu C/C++ shared library 컴파일하기 fPIC 옵션 GOT, PLT
c++ g++ -shared -fPIC -o g++ -shared fPIC -o lib.so code.cpp c gcc -shared [-fPIC] -o gcc -shared [-fPIC] -o lib.so code.c -fPIC 생략가능 하지만 공유라이브러리를 만들 때는 -fPIC 옵션 사용을 권장합니..
asung123456.tistory.com
https://www.lesstif.com/software-architect/shared-library-linker-loader-12943542.html
동적 라이브러리(shared library)와 Linker/Loader 이해하기
외부 함수를 포함해서 프로그램을 만드는 것을 정적 링크(static linking)라고 부릅니다.)
www.lesstif.com
728x90
반응형
'프로그래밍 > 리눅스 프로그래밍' 카테고리의 다른 글
[compile] compile 에러 별 대처 방안 (0) | 2022.01.22 |
---|---|
[linux] libc와 glibc의 차이 (0) | 2022.01.13 |
[systemd] systemd를 시용한 자가 업데이트 로직 (0) | 2022.01.06 |
프로그램 중복 실행 확인 코드 (0) | 2021.10.11 |
bash shell 키워드 의미 (0) | 2021.08.30 |