Created attachment 5179 [details] testcase Compile with `gcc -flto -fuse-linker-plugin 1.c'
Created attachment 5180 [details] backtrace
CVSROOT: /cvs/src Module name: src Changes by: hjl@sourceware.org 2011-01-05 14:25:26 Modified files: ld : ChangeLog plugin.c Log message: Check if a bfd is NULL before accessing its flags field. 2011-01-05 H.J. Lu <hongjiu.lu@intel.com> PR ld/12364 * plugin.c (get_symbols): Check if owner_sec->owner is NULL before accessing its flags field. Patches: http://sourceware.org/cgi-bin/cvsweb.cgi/src/ld/ChangeLog.diff?cvsroot=src&r1=1.2264&r2=1.2265 http://sourceware.org/cgi-bin/cvsweb.cgi/src/ld/plugin.c.diff?cvsroot=src&r1=1.19&r2=1.20
Fixed.
Tracked by "LTO 6" test.