Displaying 2 results from an estimated 2 matches for "__stop".
Did you mean:
d_stop
2020 Jun 02
2
LLD : __start_ and __end_ symbols for orphan sections
...export_dbg_log_init_f (void) __attribute__ ((unused));
>static struct orphan_dummy_anno_s const
> dummy_export_dbg_log_init_linker_set =
> { dummy_export_dbg_log_init_f, };
>__asm__ (".globl " "__start_set_orphan_dummy_anno");
>__asm__ (".globl " "__stop_set_orphan_dummy_anno");
>static void const
> *__set_orphan_dummy_anno_sym_dummy_export_dbg_log_init_linker_set
> __attribute__ ((__section__ ("set_" "orphan_dummy_anno")))
> __attribute__ ((__used__)) = &dummy_export_dbg_log_init_linker_set;
>========...
2020 Jun 02
2
LLD : __start_ and __end_ symbols for orphan sections
...r script as generic as possible so how can I tell lld to create these symbols without having to add them in the linker script?
>
>Thanks
>A
It works for me.
SECTIONS {
data : { *(data) }
}
.section data,"aw"
.quad __start_orphan
.quad __stop_orphan
.section orphan,"aw"
.quad __start_data
.quad __stop_data
Can you give an example __start_ or __end_ symbols are not defined for orphan sections?