Some more details:
Also happens with Kernel 2.6.32 from Debian Squeeze, i.e. it's not an issue of a recent kernel.
Attached a diff of normalized strace output of: - gcc-4.5 -o test test.c - gcc-4.6 -o test test.c
One difference between the two runs seems to be that test.c is opened with O_LARGEFILE in gcc-4.6, but not gcc-4.5.
Some more details:
Also happens with Kernel 2.6.32 from Debian Squeeze, i.e. it's not an issue of a recent kernel.
Attached a diff of normalized strace output of:
- gcc-4.5 -o test test.c
- gcc-4.6 -o test test.c
One difference between the two runs seems to be that test.c is opened with O_LARGEFILE in gcc-4.6, but not gcc-4.5.