0

I do have some doubts about __attribute__((section("name")) .What is the real use of defining a user defined .section? Is there any examples to shows how it is useful?

4
  • You might want to clarify if the question is directed at e.g. linux kernel code, otherwise it's a question more suited for stackoverflow Commented Feb 3, 2020 at 10:41
  • There are quite a few examples on sources.debian.org (but that doesn’t explain why it’s useful). Commented Feb 3, 2020 at 11:43
  • @Torin, I believe this is allowed in both kernel and user space code. If I understand correctly in kernel code, a whole section can be loaded and unloaded/destroyed from memory when not in use. This is one of the uses(?) . Or is there an another use with section? Commented Feb 3, 2020 at 16:08
  • This question with same topic is answered in stackoverflow. Thanks. Commented Feb 4, 2020 at 5:44

0

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.