This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
A question about ld relaxation.
- From: bjgnu at sunnorth dot com dot cn
- To: binutils at sourceware dot org
- Date: Wed, 23 May 2007 10:52:04 +0800
- Subject: A question about ld relaxation.
Hello binutils experts,
I see it is reliable to relax pc-relative instructions,
like bl-32bits relax to bl-16bits (for function call) for the
pc-relative offset can be calculated correctly?
I have some questions about the relaxation issue here.
1, Can ld relax direct jump instructions?
Such as jump-32bits relax to jump-16bits. It is not the final link,
and all global symbol address is not fixed. In the relaxation stage,
can i directly use the global symbol address as the final address?
2, Does ld handle pc-relative relaxation and direct jump relaxation
the same way?
3, Almost all the targets shrink the instruction size during relaxation.
Can i enlarge the instruction? like bl32-bits relax to bl-48bits?
Any help will be appreciated!
Best regards,
Qinwei