Page MenuHomeFreeBSD

Always compile the brand and ignore init ELF notes standalone.
ClosedPublic

Authored by jhb on Jun 20 2020, 6:42 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, May 3, 8:20 AM
Unknown Object (File)
Sat, Apr 27, 11:59 PM
Unknown Object (File)
Thu, Apr 18, 12:40 AM
Unknown Object (File)
Sat, Apr 13, 2:28 AM
Unknown Object (File)
Sat, Apr 13, 2:26 AM
Unknown Object (File)
Sat, Apr 13, 2:26 AM
Unknown Object (File)
Mar 22 2024, 5:25 PM
Unknown Object (File)
Mar 22 2024, 12:27 PM
Subscribers

Diff Detail

Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 31842
Build 29402: arc lint + arc unit

Event Timeline

jhb requested review of this revision.Jun 20 2020, 6:42 PM

I will rebase my other changes on top of this if it gets ok'd.

kib added inline comments.
lib/csu/arm/crt1_s.S
48

This line was left from an intermediate version ?

69

Might be add arm_ignore_init_note.S ? Or if Makefile rules allow to handle it without much trouble, arm/ignore_init_note.S ?

This revision is now accepted and ready to land.Jun 20 2020, 7:14 PM
  • Fixup for needed #include.
This revision now requires review to proceed.Jun 22 2020, 10:16 PM
lib/csu/arm/crt1_s.S
48

Oops, yes. I wasn't sure if I needed it for the NT_FREEBSD_ARCH_TAG (you'd think I would need it actually for that). Hmm, I'll rebuild to make sure I don't need this.

Ah, so the assembler didn't reject this, but linking binaries eventually fails due to an undefined symbol for NT_FREEBSD_ARCH_TAG. I've uncommented the #include. For some reason doing a 'rm /usr/obj/<path>/*/bin/sh/sh' didn't relink /bin/sh. Ah, I probably needed to delete sh.full.

69

Well, it would be more like arch_tag_note.S. I didn't think we wanted it on other platforms (if we did we'd have to fix them all to construct MACHINE_ARCH in a safe way). If we do maybe want it on other platforms some day that would argue for moving it to its own file, but I feel like we can probably wait to do that until it's needed for something other than arm?

This revision is now accepted and ready to land.Jun 23 2020, 3:36 AM