【问题标题】:How could I remove a certain .o section out of .a file如何从 .a 文件中删除某个 .o 部分
【发布时间】:2015-01-26 23:53:39
【问题描述】:

我有一个包含一堆符号和对象的 .a 文件。有一段是

libunwind.o:
00000184 T _Unwind_Backtrace
00000160 T _Unwind_ForcedUnwind
000000f4 T _Unwind_RaiseException
00000118 T _Unwind_Resume
0000013c T _Unwind_Resume_or_Rethrow
00000184 T ___Unwind_Backtrace
00000160 T ___Unwind_ForcedUnwind
000000f4 T ___Unwind_RaiseException
00000118 T ___Unwind_Resume
0000013c T ___Unwind_Resume_or_Rethrow
         U __gnu_Unwind_Backtrace
         U __gnu_Unwind_ForcedUnwind
         U __gnu_Unwind_RaiseException
00000014 T __gnu_Unwind_Restore_VFP
00000024 T __gnu_Unwind_Restore_VFP_D
00000034 T __gnu_Unwind_Restore_VFP_D_16_to_31
000000cc T __gnu_Unwind_Restore_WMMXC
00000044 T __gnu_Unwind_Restore_WMMXD
         U __gnu_Unwind_Resume
         U __gnu_Unwind_Resume_or_Rethrow
0000001c T __gnu_Unwind_Save_VFP
0000002c T __gnu_Unwind_Save_VFP_D
0000003c T __gnu_Unwind_Save_VFP_D_16_to_31
000000e0 T __gnu_Unwind_Save_WMMXC
00000088 T __gnu_Unwind_Save_WMMXD
00000000 T __restore_core_regs
00000000 T restore_core_regs

我可以使用哪个 binutil 工具来删除整个部分?

【问题讨论】:

    标签: binutils libunwind


    【解决方案1】:

    如果您的意思是要删除整个文件libunwind.o,可以使用:

    ar d libwhateveritis.a libunwind.o
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-03-02
      • 2020-10-16
      • 1970-01-01
      相关资源
      最近更新 更多