Well, thank you.
On Mon, Dec 26, 2011 at 5:04 PM, Angus Salkeld asalkeld@redhat.com wrote:
----- Original Message -----
From: "Yunkai Zhang" qiushu.zyk@taobao.com To: "Angus Salkeld" asalkeld@redhat.com Cc: "lib quarterback" quarterback-devel@lists.fedorahosted.org Sent: Friday, 23 December, 2011 8:27:50 PM Subject: How does ld linker work?
Hi Angus:
I'm confused by these code in qblog.h:
240 /* will be assigned by ld linker magic */ 241 #ifdef QB_HAVE_ATTRIBUTE_SECTION 242 extern struct qb_log_callsite __start___verbose[]; 243 extern struct qb_log_callsite __stop___verbose[];
I can't understand how ld linker work: What is the naming rule when we use callsite? __start___<section_name>? Can you give me some references about ld linker's magic?
Hi
http://gcc.gnu.org/onlinedocs/gcc-3.2/gcc/Variable-Attributes.html
Look at the paragraph: section ("section-name")
-Angus
Thanks a lot.
-- Yunkai Zhang Work at Taobao
quarterback-devel mailing list quarterback-devel@lists.fedorahosted.org https://fedorahosted.org/mailman/listinfo/quarterback-devel