Bug 263406 - Reduce contents of a.out.h and remove machine/reloc.h
Summary: Reduce contents of a.out.h and remove machine/reloc.h
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: CURRENT
Hardware: Any Any
: --- Affects Only Me
Assignee: Brooks Davis
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-04-18 20:42 UTC by Brooks Davis
Modified: 2022-04-22 06:39 UTC (History)
1 user (show)

See Also:
antoine: exp-run+


Attachments
Reduce contents of a.out.h and remove machine/reloc.h (12.93 KB, patch)
2022-04-18 20:42 UTC, Brooks Davis
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Brooks Davis freebsd_committer freebsd_triage 2022-04-18 20:42:27 UTC
Created attachment 233317 [details]
Reduce contents of a.out.h and remove machine/reloc.h

My reloc.h-tidying branch on GitHub (https://github.com/brooksdavis/freebsd/tree/reloc.h-tidying) contains a series of patches to make move of a.out.h a no-op on non-x86 and remove machine/reloc.h (empty on all by amd64, arm, and i386). It has previously passed a tinderbox build, but there's some chance machine/reloc.h is being included in a port or that more of a.out.h is being relied on that then nlist bits used by nlist(3). 

If resources are available, a run on a non-x86 architecture would be more informative.

The attached patch is suitable for use with `git am`. (It contains the renaming of a file so I'm not 100% sure what patch will do with it.)
Comment 1 Antoine Brodin freebsd_committer freebsd_triage 2022-04-22 06:39:28 UTC
Exp run looks fine on x86.