Page MenuHomeFreeBSD

Fix the powerpc copyout fixup from r356113
ClosedPublic

Authored by jhibbits on Dec 27 2019, 4:57 PM.
Tags
None
Referenced Files
Unknown Object (File)
Dec 20 2023, 7:31 AM
Unknown Object (File)
Nov 10 2023, 9:16 AM
Unknown Object (File)
Nov 8 2023, 9:21 AM
Unknown Object (File)
Nov 1 2023, 1:28 PM
Unknown Object (File)
Oct 7 2023, 8:09 AM
Unknown Object (File)
Sep 10 2023, 6:31 AM
Unknown Object (File)
Aug 22 2023, 4:09 PM
Unknown Object (File)
Jul 8 2023, 12:20 AM
Subscribers

Details

Summary

r356113 used an older patch, which predated the
freebsd_copyout_auxargs() addition. Fix this by using a private
powerpc_copyout_auxargs() instead, and keep it private to powerpc, not in MI
files.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Thank you for fixing this.

sys/powerpc/include/elf.h
141 ↗(On Diff #66024)

I would suggest to keep the symbols at the AT_ namespace, i.e. name them AT_OLD_NULL etc.

sys/powerpc/powerpc/elf_common.c
31 ↗(On Diff #66024)

The file lacks $FreeBSD$ tag, which will trigger the pre-commit hook. I wrote it there because you do not need to use any includes in this file, they should be provided by consumers.

36 ↗(On Diff #66024)

style issue: initialization in declaration.

Tests went good.

It can boot an pre-130007 (tested with elfv2) world without crashing, and the old programs continue to work. It can also run new binaries (as expected.)

This revision is now accepted and ready to land.Dec 27 2019, 5:13 PM
This revision now requires review to proceed.Dec 27 2019, 5:17 PM
This revision is now accepted and ready to land.Dec 27 2019, 5:22 PM
This revision was automatically updated to reflect the committed changes.