Linux ELF 符号表 dlopen 顺序初探
ConceptELF可执行文件有两种格式: ET_EXEC 和 ET_DYN使用c/c++生成的ELF文件,通常会先经过loader(ld.so) 加载所需库(例如libc.so),同时还会加载编译时使用-l xxx.so指定的库,最后才到int main()查看导入导出表: readelf -s libxxx.so 看 .dynsym部分(UNDEF当然是导入啦)下文 symbol <...
挖两个bug: no member named 'value' in 'std::is_copy_constructible'
The first sample codeGodBolt full link && short link https://godbolt.org/z/zcsW65f7Pbugreport: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88165#include <variant>
#include <unordered_map&...
C++11 SFINAE
时隔多日,终于弄懂如何运用。。。序 c++ template一个template的普通用法template<typename T>
T inc(T in) { return T + 1; }SFINAE#include <iostream>
#include <type_traits>
//case 0
template<int X, typena...
记distcc的超级加倍
Step两机器装好差不多的文件服务器端安装distccd并运行,设置绑定端口客户端在编译指令前加distcc,例如distcc clang++ a.cpp -o a使用者:一份remote优先的配置文件# --- /etc/distcc/hosts -----------------------
127.0.0.1:6666/16,lzo localhost/1我用了ssh tunnel转发...
记如何开一个container用来工作
宿主机准备 podmanpodman run --name rhel8 -it -p22222:22 -d -v/data/vrqq:/project:z ubi8/ubiIn container自带的软件源没有sshd,需要拉源马编译dnf install zlib-devel wget openssl-devel autoconf make gcc
wget https://ftp.ri...