This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
interface prob in gas and ld
- From: "Vineet Sharma, Noida" <vineets at noida dot hcltech dot com>
- To: binutils at sources dot redhat dot com
- Date: Mon, 8 Dec 2003 12:55:34 +0530
- Subject: interface prob in gas and ld
Hi,
i have ported binutils (2.13.1) to new target.
I have small query consider the following exambple
ABC: ;Line 1
.short 0x88 ; 2
Lp.1: ; 3
.short ABC+9 ; 4
First of all what exactly does it mean, and how is it handled in general
GAS/Linker?
Secondly:
Now when my bfd assembler parses Line 4 it passes it to fix_new_exp().
Poblem 1: fix_new_exp() does not handle negative value in fr_offset
attribute
i.e .short ABC-9
is grabled and "-9" is lost
So even though i have the address of ABC i dont know what to
add/substract.
Problem 2:
How can i pass this "value (exp->X_add_number)"(9 in this case) to
linker along with the reloc entry.Though
i have defined external_reloc in include/coff/XXX.h containing this
value attribute.
Regards
Vineet