public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* [GOLD] How can I add a undefined symbol in target implementation, not by "-u SYM" from command line ?
@ 2012-08-13 10:51 Jiong WANG
  2012-08-13 14:11 ` Jiong WANG
  2012-08-13 15:39 ` Ian Lance Taylor
  0 siblings, 2 replies; 11+ messages in thread
From: Jiong WANG @ 2012-08-13 10:51 UTC (permalink / raw)
  To: binutils; +Cc: Ian Lance Taylor

Hi All,

  How can I predefine a undefined symbol in target implementation?

  actually, I am porting gold for tilegx, and our arch's tls
implementation requires predefiniation of "_tls_get_addr" because the
assembler generate relocation which use this symbol implicitly.

   I know there are interfaces,  "define_in_output_data/segment" to
predefined symbol with value, but there is no interface to predefine
"undefined" symbol ?

   gold linker do support this by command line "-u SYMBOL",  but it's
a compile time decision not link time.

   currently, I managed to support this by the following ugly code:

    options::parse_set(NULL, "_tls_get_addr",
(gold::options::String_set*)&parameters->options().undefined());

   which is bad, so, could anyone give me some suggestion on this?

   thanks very much

---
Regards,
WANG.Jiong

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2012-08-17  8:11 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-08-13 10:51 [GOLD] How can I add a undefined symbol in target implementation, not by "-u SYM" from command line ? Jiong WANG
2012-08-13 14:11 ` Jiong WANG
2012-08-13 15:39 ` Ian Lance Taylor
2012-08-14  3:39   ` Jiong WANG
2012-08-14  4:54     ` Ian Lance Taylor
2012-08-14  5:26       ` WANG.Jiong
2012-08-14  5:35         ` Ian Lance Taylor
2012-08-14  6:34           ` WANG.Jiong
2012-08-17  3:54           ` [GOLD] Where can I found other target's test result? WANG.Jiong
2012-08-17  6:29             ` Ian Lance Taylor
2012-08-17  9:32               ` Jiong WANG

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).