Reputation: 1077
I know
.text
, .data
, or .rodata
to declare sections. .text : { *(.text) } .data : { *(.data) }
.text
, .data
, etc.My questions are:
.mysection
to ELF by asm code and ld script?Appreciate any suggesions.
Upvotes: 0
Views: 253
Reputation: 1822
I am summarizing the comments from @Jester @Ross Ridge on question for reference
Yes you can add customize section (with out changing the kernel dynamic loader as it will determine the sections from the ELF headers) you should use .section directive to avoid the error "reset.S: Assembler messages: reset.S:8: Error: unknown pseudo-op: `.mysection".
Upvotes: 0