I need help that about linker_lists.h file.

+1 vote
asked Apr 9, 2019 by hakjun (130 points)


I made program by referring to u-boot linker_lists. 
( refer: https://github.com/u-boot/u-boot/blob/master/include/linker_lists.h )

The function used is: 
ll_entry_declare(_type, _name, _list)
ll_entry_declare_list(_type, _name, _list)
ll_entry_start(_type, _list)
ll_entry_end(_type, _list)
ll_entry_count(_type, _list)

However, the ll_entry_end function does not work well.
The return value of ll_entry_end is the same ll_entry_start.

What am I doing wrong? I need help.
If possible, can you tell me the mechanism of the section in __attribute__ that linker_lists.h file?

best regards.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:
To avoid this verification in future, please log in or register.
Welcome to OnlineGDB Q&A, where you can ask questions related to programming and OnlineGDB IDE and and receive answers from other members of the community.