Bug 7103 - STT_IFUNC is in OS-specific range
Summary: STT_IFUNC is in OS-specific range
Status: RESOLVED FIXED
Alias: None
Product: binutils
Classification: Unclassified
Component: ld (show other bugs)
Version: 2.20
: P2 normal
Target Milestone: ---
Assignee: unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-12-16 18:55 UTC by H.J. Lu
Modified: 2008-12-23 09:04 UTC (History)
2 users (show)

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description H.J. Lu 2008-12-16 18:55:51 UTC
STT_IFUNC is defined in OS-specific range:

#define STT_LOOS        10      /* OS-specific semantics */
#define STT_IFUNC       10      /* Symbol is an indirect code object */
#define STT_HIOS        12      /* OS-specific semantics */ 

It should be STT_GNU_IFUNC.  Unless everyone agrees it should be 7,
which is generic to all OSes, it should be renamed to STT_GNU_IFUNC.
Comment 1 Nick Clifton 2008-12-23 09:04:34 UTC
Hi H.J.

  You are correct, the value should be 7.

  I have removed the STT_IFUNC support in binutils (for now), but should the
feature be officially approved I will re-add the support, with the correct value
for STT_IFUNC.

Cheers
  Nick