Bug 4782 - Segmentation fault when using SIZEOF
Summary: Segmentation fault when using SIZEOF
Status: RESOLVED FIXED
Alias: None
Product: binutils
Classification: Unclassified
Component: ld (show other bugs)
Version: 2.17
: P2 normal
Target Milestone: ---
Assignee: unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-07-11 23:54 UTC by Udo Steinberg
Modified: 2007-07-12 01:41 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Udo Steinberg 2007-07-11 23:54:27 UTC
Using GNU ld (Linux/GNU Binutils) 2.17.50.0.17.20070615 with the following
snippet of linker script causes ld to segfault. Even though the SIZEOF
expression is dubious it shouldn't crash.

SECTIONS
{
    .text SIZEOF (.text) :
    {
        *(.text)
    }
}