Modify the gcc plugin to detect linklist memory leaks
Modify the gcc plugin to detect linklist memory leaks 最近又開始在看以前專案把想做的東西做完整,在以前檢測記憶體洩漏的時候有發現在linklist的部分memory leak好像沒有找到相對應的gimple 所以那大概新增這個 type就可以了 https://github.com/x213212/Static-analyz…
LABEL / GCC
8 posts
Modify the gcc plugin to detect linklist memory leaks 最近又開始在看以前專案把想做的東西做完整,在以前檢測記憶體洩漏的時候有發現在linklist的部分memory leak好像沒有找到相對應的gimple 所以那大概新增這個 type就可以了 https://github.com/x213212/Static-analyz…
在gcc 可以下 code Copy -fdump-rtl-all-all 得到gcc 執行rtl pass的優化結果,其中目前我的平台是 x86 那唯一看到rtl tree有真正執行 並且變化的 pass有三個 code Copy combine reload cprop_hardreg 這是在pass中所呈現的rtl tree code Copy (insn 31 30 3…
gcc plugin 補足之前,影響fucntion 是否inline 版本,額外新增了可以影響unroll loop rtl層 pass的撰寫,這邊一併附上 這次比較特別趕上了chatgtp,rtl pass 這部分語法都是透過chatgpt幫助下進行撰寫,基本上不當機的情況下都快變成google 2.0了,包括這個文章都是用chatgpt產生,但是要注意除非你是領域上的專家…
花了兩年在gcc plugin 構建一個靜態分析器. https://github.com/x213212/Static-analyzer-in-gccplugin Table of contents [toc] Introduction Use GCC PLUGIN to implement a static analyzer to help users detect mem…
GCC 12 static analyzer 靜態分析器檢測流程,分析一下gcc12 目前檢測流程 Analyzer Internals https://gcc.gnu.org/onlinedocs/gccint/Analyzer-Internals.html debug gcc compiler code Copy sudo apt install gcc-multilib…
ida pro use python plugin remote debuging 看了一下ida pro 原來是可以透過python plugin 的方式把組合語言轉成類似 c 語言的虛擬碼 步驟如下 環境是 windows 下 debug linux x64 elf 檔案 https://blog.csdn.net/weixin_26746861/article/detai…
shard library https://medium.com/fcamels-notes/linux-%E7%B7%A8%E8%AD%AF-shared-library-%E7%9A%84%E6%96%B9%E6%B3%95%E5%92%8C%E6%B3%A8%E6%84%8F%E4%BA%8B%E9%A0%85-cb35844ef331 https://aben20807…
gcc plugin 簡述 在網路上這部分的資訊非常的稀少,剛好有 https://zhuanlan.zhihu.com/p/49490338 假設要做分析的話我們首先要了解這個 plugin 是實作在哪一個階段,也就是 我們是實作在gcc compiler 的這個階段 就是我們中間層 ir的部分 加入我們額外新增的一些gcc 原生的 api 進行分析 https://code…