Comment 12 for bug 392501

Created attachment 4636
Makefile

Line-wrapping did nasty things to the 255-character filename in the original
bug description. Here is a Makefile and test.c that demonstrates the issue.
What's really odd is that the 4 byte difference appears to be strictly padding?
 All the offsets and sizes are the same between 64bit and 32bit:

./test-native bug-dir
sizeof(struct dirent): 280
 sizeof(dirent.d_ino@0): 8
 sizeof(dirent.d_off@8): 8
 sizeof(dirent.d_reclen@16): 2
 sizeof(dirent.d_type@18): 1
 sizeof(dirent.d_name@19): 256
./test-m32 bug-dir
sizeof(struct dirent): 276
 sizeof(dirent.d_ino@0): 8
 sizeof(dirent.d_off@8): 8
 sizeof(dirent.d_reclen@16): 2
 sizeof(dirent.d_type@18): 1
 sizeof(dirent.d_name@19): 256
*** stack smashing detected ***: ./test-m32 terminated