| Summary: | binutils (ld, nm) don't work on object file with large amounts of string | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Eric Springer <erikina> | ||||
| Component: | binutils | Assignee: | Nick Clifton <nickc> | ||||
| Status: | CLOSED NOTABUG | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||
| Severity: | high | Docs Contact: | |||||
| Priority: | unspecified | ||||||
| Version: | 14 | CC: | jakub, nickc | ||||
| Target Milestone: | --- | ||||||
| Target Release: | --- | ||||||
| Hardware: | x86_64 | ||||||
| OS: | Linux | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | Doc Type: | Bug Fix | |||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2011-04-11 12:12:48 UTC | Type: | --- | ||||
| Regression: | --- | Mount Type: | --- | ||||
| Documentation: | --- | CRM: | |||||
| Verified Versions: | Category: | --- | |||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||
| Attachments: |
|
||||||
|
Description
Eric Springer
2011-04-09 04:34:01 UTC
Created attachment 490920 [details]
Standalone file which can be used to reproduce problem
Hi Eric,
This is because GCC is a little bit too smart. It knows that pronounce.h is a header file, not a C source file. So when you compile it, gcc turns it into a precompiled header, not an object file. Hence nm does not recognise it. Viz:
% file pronounce.o
pronounce.o: GCC precompiled header (version 013) for C
% cp pronounce.h fred.c
% gcc -c fred.c
% nm fred.o
00329d20 r C.0.2193
0042e278 r __PRETTY_FUNCTION__.1399
U __assert_fail
U memcpy
00000000 T pronounce
U strcmp
Cheers
Nick
Gah! I'm an idiot. Sorry for the noise Thanks very much Eric |