HomeFreeBSD

IPC: blake3 x86 asm: fix placement of .size directives

Description

IPC: blake3 x86 asm: fix placement of .size directives

The .size directive used by the SET_SIZE C macro uses the special
dot symbol to calculate the size of a function. The dot symbol
refers to the current address, so for the calculation to be
meaningful the SET_SIZE macro must be placed immediately after the
end of the function the size is calculated for.

Reviewed-by: Jorgen Lundman <lundman@lundman.net>
Reviewed-by: Tino Reichardt <milky-zfs@mcmilk.de>
Reviewed-by: Richard Yao <richard.yao@alumni.stonybrook.edu>
Signed-off-by: Attila Fülöp <attila@fueloep.org>
Closes #14422

Details

Provenance
Attila Fülöp <attila@fueloep.org>Authored on Jan 23 2023, 6:48 PM
Brian Behlendorf <behlendorf1@llnl.gov>Committed on Jan 24 2023, 5:03 PM
Parents
rG37a27b430612: Wait for txg sync if the last DRR_FREEOBJECTS might result in a hole
Branches
Unknown
Tags
Unknown

Event Timeline

Brian Behlendorf <behlendorf1@llnl.gov> committed rG58ca7b10119b: IPC: blake3 x86 asm: fix placement of .size directives (authored by Attila Fülöp <attila@fueloep.org>).Jan 24 2023, 5:03 PM