interface prob in gas and ld
Vineet Sharma, Noida
vineets@noida.hcltech.com
Mon Dec 8 07:23:00 GMT 2003
More information about the Binutils mailing list
Mon Dec 8 07:23:00 GMT 2003
- Previous message (by thread): [patch] ld/*.c: Convert to ISO-C.
- Next message (by thread): interface prob in gas and ld
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Previous message (by thread): [patch] ld/*.c: Convert to ISO-C.
- Next message (by thread): interface prob in gas and ld
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Binutils mailing list