whj2819 发表于 2017-11-09 13:07

ld链接脚本DISCARD问题

本帖最后由 whj2819 于 2017-11-09 13:08 编辑


/DISCARD/ :    {        libc.a ( * )   
    libm.a ( * )
      libgcc.a ( * )
   }



想问下链接脚本里的这段代码啥意思?
我的理解:
以libc.a 为例: 输入文件 libc.a 中的所有段都丢弃. 这样的话memset memcpy这些标准库函数还会链接到可执行程序中去么?


ouyixq 发表于 2017-11-29 17:48

又是一个周末,在这个初冬时节,愿冷风吹走你所有的烦恼!愿冰雨落完你全部的忧愁!朋友,轻松周末,愿你过得惬意舒心,美满快乐!祝福你!

ouyixq 发表于 2017-12-05 10:35

If you want to change something, start with babysteps. Take a small action - any action - and growfrom there.

ouyixq 发表于 2017-12-14 14:44

We tend to forget that happiness doesn't come as aresult of getting sth. we don't have,but rather ofrecognizing and appreciating what we do have.
页: [1]
查看完整版本: ld链接脚本DISCARD问题