Bug 4409

Summary: --unresolved-symbols=ignore-all issues on ia64
Product: binutils Reporter: Jakub Jelinek <jakub>
Component: ldAssignee: unassigned
Status: RESOLVED FIXED    
Severity: normal CC: bug-binutils, hjl.tools
Priority: P2    
Version: unspecified   
Target Milestone: ---   
Host: Target: ia64-linux
Build: Last reconfirmed:

Description Jakub Jelinek 2007-04-23 08:08:24 UTC
cat > a.c <<EOF
extern int foo (void);
int
main (void)
{
  return foo ();
}
EOF
gcc -fpie -pie --unresolved-symbols=ignore-all a.c -o a
segfaults in the linker on
              /* Since there's no PLT entry, Validate that this is
                 locally defined.  */
              BFD_ASSERT (undef_weak_ref || sym_sec->output_section != NULL);

(sym_sec is apparently NULL).
Comment 1 H.J. Lu 2007-05-10 05:15:18 UTC
A patch is posted at

http://sourceware.org/ml/binutils/2007-05/msg00129.html
Comment 2 H.J. Lu 2007-07-03 16:48:25 UTC
"gcc -fpie -shared -pie" since -shared implies --unresolved-symbols=ignore-all.