![](/img/trans.png)
[英]What is the purpose for using `-fdata-sections` and `-ffunction-sections` these two options in gcc?
正如手冊頁所說: -ffunction-sections -f數據部分將每個 function 或數據項放入其自己的部分如果目標支持任意部分,則為輸出文件。 這 function 的名稱或數據項的名稱確定 output 文件中該部分的名稱。 編譯這段代碼后:... int bss_var_1 ...