PERFORCE change 127654 for review
John Birrell
jb at FreeBSD.org
Wed Oct 17 21:31:30 PDT 2007
http://perforce.freebsd.org/chv.cgi?CH=127654
Change 127654 by jb at jb_freebsd1 on 2007/10/18 04:31:18
The FreeBSD kernel has note sections which aren't
4-byte aligned. I see that tools on other systems assume
that notes have byte alignment even though the natural
alignment would be 4 bytes given that's the size of
the first field in the notes header.
We have to be compatible though, so byte alignment it
must be.
Affected files ...
.. //depot/projects/dtrace/src/lib/libelf/libelf_align.c#5 edit
Differences ...
==== //depot/projects/dtrace/src/lib/libelf/libelf_align.c#5 (text+ko) ====
@@ -122,7 +122,7 @@
#endif
[ELF_T_MOVEP] = UNSUPPORTED(),
#if __FreeBSD_version >= 700025
- [ELF_T_NOTE] = FALIGN(4,4),
+ [ELF_T_NOTE] = FALIGN(1,1),
#endif
[ELF_T_OFF] = FALIGN(4,8),
[ELF_T_PHDR] = FALIGN(4,8),
More information about the p4-projects
mailing list