|
|
|
|
 请教各位,与重定位有关...... - hdzbf [ 2005-06-23 13:49 | 607 byte(s)]
 Re: 请教各位,与重定位有关...... - canopy [ 2005-06-23 20:33 | 4 byte(s)]
 Re: 请教各位,与重定位有关...... - hdzbf [ 2005-06-24 11:06 | 192 byte(s)]
 Re: 请教各位,与重定位有关...... - canopy [ 2005-06-24 20:52 | 111 byte(s)]
|
|
|
|
[Original]
[Print]
[Top]
|
在binutils包里面,每种cpu都有各自的重定位类型,bfd可以支持对这些重定位的操作,例如i860的重定位类型有如下30多种,R_860_NONE,R_860_32,R_860_COPY,R_860_GLOB_DAT,R_860_JUMP_SLOT,R_860_RELATIVE,R_860_PC26,R_860_PLT26,R_860_SPLIT0等等,象别的cpu如sparc更是多达79种,bfd根据这些重定位的类型进行不同的处理。
每种cpu的重定位类型都是不同的,那么这种区别主要是由cpu的体系结构造成的吗?另外如果要为一新的cpu添加工具链的支持,重定位类型的确定是必要的,可是这些类型怎么确定呢,从指令集里面能总结出它们吗?
一直对重定位问题有疑惑,
期待回复.......
|
|
|
----
人之为学有难易乎?
|
|
[Original]
[Print]
[Top]
|
|
[Original]
[Print]
[Top]
|
canopy,thanks!
But I have no idea about how to sum up these relocation types from the instruction set.
Could you give me a hint or an example please?
Thanks a lot!
|
|
|
----
人之为学有难易乎?
|
|
[Original]
[Print]
[Top]
|
|
[Original]
[Print]
[Top]
|
|
Just try it. And take a look at other ports if you have some confusions. It cannot be told in one or two pages.
|
|
|
[Original]
[Print]
[Top]
|
|
|