segmentation fault with --relax option, avr target

S, Pitchumani Pitchumani.S@atmel.com
Sun Jan 1 09:43:00 GMT 2012


>'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



More information about the Binutils mailing list