asm-generic/sections.h: add assembler version of push_section_type()

This lets us match the style of using using push_section_type for
asm volatile but for use in actual foo.S code. We keep the
SECTION_TYPE() declaration as well since both tables.h and ranges.h
use it for all code (C code, assembly, and assembler). We keep it
as we'll also enable next extending the assembler version of
push_section_type() with a flags option, SECTION_TYPE() on the
assembler version can be used for when the flags is empty.

While at it avoid requiring quotes for the level, this lets us
match all uses of the levels for all code.

Signed-off-by: Luis R. Rodriguez <>
4 files changed