This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
RE: segmentation fault with --relax option, avr target
- From: "S, Pitchumani" <Pitchumani dot S at atmel dot com>
- To: <binutils at sourceware dot org>
- Date: Sun, 1 Jan 2012 17:43:28 +0800
- Subject: RE: segmentation fault with --relax option, avr target
- References: <4C79549CB6F772498162A641D92D532803E0F4C9@penmb01.corp.atmel.com>
>'relocs' field is updated in elflink.c:_bfd_elf_link_read_relocs
function.
>In my case, for few sections 'relocs' field is not updated.
Test case:
//avr-gcc main.c -mrelax -ffunction-sections -mmcu=atmega128
// using binutils-2.22
void func2(int a)
{
}
void func1(void)
{
func2(10);
}
int main(void)
{
func1();
}
Thanks,
Pitchumani.S