http://sourceware.org/bugzilla/show_bug.cgi?id=13612

             Bug #: 13612
           Summary: segmentation fault with --relax option, avr target
           Product: binutils
           Version: 2.22
            Status: NEW
          Severity: normal
          Priority: P2
         Component: ld
        AssignedTo: unassig...@sourceware.org
        ReportedBy: fabio.vares...@gmail.com
    Classification: Unclassified


Hello, it seems that ld has some issue when run with --relax on AVR targets
resulting in a segmentation fault.

See details at http://comments.gmane.org/gmane.comp.gnu.binutils/55903

Simple 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();
}

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

_______________________________________________
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils

Reply via email to