Bug 212099 - Using --cref option of linker causes lots of linker errors
Summary: Using --cref option of linker causes lots of linker errors
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: binutils
Version: 6
Hardware: i386
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Jakub Jelinek
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2006-10-25 01:55 UTC by Jim Hennessy
Modified: 2007-11-30 22:11 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2007-01-06 10:26:48 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Jim Hennessy 2006-10-25 01:55:28 UTC
Description of problem:

When I compile a simple Hello World C program with the following command, lots
of errors result:

   cc -o hello -Wl,-Map,hello.map -Wl,--cref hello.c

The errors are along the lines of

   /usr/bin/ld: symbol `' missing from main hash table

The symbols names listed are often garbage.  Omiting the --cref linker option
avoids the errors.

Version-Release number of selected component (if applicable):

I'm using the official release version of Fedora Core 6.

cc --version gives:  cc (GCC) 4.1.1 20061011 (Red Hat 4.1.1-30)

The ld utility is part of:  binutils-2.17.50.0.3-6


How reproducible:

It fails every time, for all C programs I tried.


Steps to Reproduce:

1. Simply compile any C program with a command like the one above.

  
Actual results:

Lots of error messages.

Expected results:

Successful linking.

Additional info:

Comment 2 Jakub Jelinek 2006-12-21 21:03:01 UTC
binutils-2.17.50.0.6-2.fc6 are now in FC6 testing updates.  Please check it out.


Note You need to log in before you can comment on or make changes to this bug.