Issue Details (XML | Word | Printable)

Key: PCC-41
Type: Bug Bug
Status: Open Open
Priority: Minor Minor
Assignee: Unassigned
Reporter: Gregory McGarry
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
pcc

ld on OS X complains about stab entries without atoms

Created: 06/Mar/09 08:35 AM   Updated: 06/Mar/09 08:35 AM
Component/s: C frontend
Affects Version/s: None
Fix Version/s: None

Environment: OS X/i386 10.5


 Description  « Hide
A simple helloworld.c program with stabs debugging will produce the following output:

can't find atom for N_GSYM stabs ___stdinp:G15=*1 in /tmp/ctm.TKZ8PQ
can't find atom for N_GSYM stabs ___stdoutp:G15 in /tmp/ctm.TKZ8PQ
can't find atom for N_GSYM stabs ___stderrp:G15 in /tmp/ctm.TKZ8PQ
can't find atom for N_GSYM stabs _sys_nerr:G1 in /tmp/ctm.TKZ8PQ
can't find atom for N_GSYM stabs _sys_errlist:G16=ar1;0;-10202;17=*2 in /tmp/ctm.TKZ8PQ

It occurs because these stab entries refer to external symbols which never appear in the symbol table because they are never referenced inside the original program.

I noticed that ld on Ubuntu didn't report these errors.

 All   Comments   Change History      Sort Order: Ascending order - Click to sort in descending order
No changes have yet been made on this issue.