Bug 14117 - Use the same set of header files for x86-64 and i386
Summary: Use the same set of header files for x86-64 and i386
Status: RESOLVED FIXED
Alias: None
Product: glibc
Classification: Unclassified
Component: libc (show other bugs)
Version: unspecified
: P2 normal
Target Milestone: 2.16
Assignee: Not yet assigned to anyone
URL: http://sourceware.org/ml/libc-alpha/2...
Keywords:
Depends on: 14050
Blocks:
  Show dependency treegraph
 
Reported: 2012-05-16 16:59 UTC by H.J. Lu
Modified: 2014-06-25 10:59 UTC (History)
2 users (show)

See Also:
Host:
Target:
Build:
Last reconfirmed:
fweimer: security-


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description H.J. Lu 2012-05-16 16:59:25 UTC
From:

http://sourceware.org/ml/libc-alpha/2012-05/msg01012.html

But I like sysdeps/x86 (and sysdeps/unix/sysv/linux/x86, etc.) as a 
solution for this issue - it would be best for all three ABIs to install 
exactly the same set of headers, which would work for all three ABIs, 
rather than having multiple copies of various installed headers, some 
versions of a header being biarch-capable and some not.  (There are some 
files other than installed headers that might be shared between x86 and 
x86_64 as well.)
Comment 1 Joseph Myers 2012-05-16 18:46:42 UTC
In general this will make x86 use the existing x86_64 headers - but each will need individually comparing with the headers currently used on x86 to make sure that any differences in what -m32 code gets are correct changes, not regressions.

In particular, the mathinline differences (bug 14050) will need fixing.

As another difference, only 32-bit glibc installs the sys/vm86.h header; x86_64 glibc also needs to install this header (but the header should probably #error if __x86_64__).
Comment 2 H.J. Lu 2012-05-18 11:26:20 UTC
Also x32 doesn't have sysctl.
Comment 3 H.J. Lu 2012-05-30 18:54:07 UTC
A patch is posted at

http://sourceware.org/ml/libc-alpha/2012-05/msg01954.html
Comment 5 H.J. Lu 2012-06-15 21:36:26 UTC
Fixed for 2.16.