freebsd-dev/lib/csu
Peter Wemm 3efeb2b693 Explicitly specify an alignment for abitag. Without it, gcc specifies a
section alignnment of 16 bytes for amd64 and this breaks file(1).
Before:
./cp: ELF 64-bit LSB executable, AMD x86-64, version 1 (FreeBSD), for \
  FreeBSD 127.7.9, statically linked, stripped
after:    ^^^^^^^
./ls: ELF 64-bit LSB executable, AMD x86-64, version 1 (FreeBSD), for \
  FreeBSD 5.0.1, dynamically linked (uses shared libs), stripped

The reason for this is that the NOTE sections are not contiguous
internally.  If the note section has an alignment of 16, then anything
that looks for the data is supposed to round up the payload start to
the next multiple of the alignment.  But FreeBSD/amd64 broke because the
structure is declared as a single structure, not a (header,payload) group,
where the payload had an explicit alignment roundup.

The alternative is to change things like file(1) to ignore the ELF payload
alignment rules for the PT_NOTE section only for FreeBSD.
2003-10-17 15:43:13 +00:00
..
alpha make these more useful for lint(1). Minor diff-reductions while I'm 2003-01-26 23:14:47 +00:00
amd64 MFi386: revision 1.19. 2003-06-30 12:53:39 +00:00
common Explicitly specify an alignment for abitag. Without it, gcc specifies a 2003-10-17 15:43:13 +00:00
i386
i386-elf Removed garbage: 2003-06-04 11:21:18 +00:00
ia64 Fix typo: Passing the first argument to exit() in out2 does not work. 2003-07-15 03:50:38 +00:00
powerpc make these more useful for lint(1). Minor diff-reductions while I'm 2003-01-26 23:14:47 +00:00
sparc64 Very minor EOL whitespace diff-reducer. 2003-01-26 23:34:47 +00:00