This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
GAS reloc->addend
- From: "Vineet Sharma" <Vineet dot Sharma at noida dot hcltech dot com>
- To: <binutils at sources dot redhat dot com>
- Date: Wed, 13 Oct 2004 18:12:59 +0530
- Subject: GAS reloc->addend
Hi,
I am porting binutils 2.15 for new 16 bit processor. I have some query :
Q1. Regarding the role of reloc_entry->addend.
I want to know how does the genreic part fills up this value and what does it symbolises. ?
Q2. If in GAS function coff_XXX_reloc() i want to identify the section of the symbol(symbol_in parameter) in question.
I tried "symbol_in->section->flags & SEC_CODE" the flag are not set and always fails in GAS(but works properly in linker). Any hints?
Thanks and Regards
Vineet