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) } }
http://sourceware.org/ml/binutils-cvs/2007-07/msg00086.html