Bug 4409 - --unresolved-symbols=ignore-all issues on ia64
Summary: --unresolved-symbols=ignore-all issues on ia64
Status: RESOLVED FIXED
Alias: None
Product: binutils
Classification: Unclassified
Component: ld (show other bugs)
Version: unspecified
: P2 normal
Target Milestone: ---
Assignee: unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-04-23 08:08 UTC by Jakub Jelinek
Modified: 2013-11-06 17:02 UTC (History)
2 users (show)

See Also:
Host:
Target: ia64-linux
Build:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.