public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "iains at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug target/45196] ld: warning: can't add line info to anonymous symbol Date: Thu, 05 Aug 2010 14:23:00 -0000 [thread overview] Message-ID: <20100805142306.4689.qmail@sourceware.org> (raw) In-Reply-To: <bug-45196-11113@http.gcc.gnu.org/bugzilla/> ------- Comment #1 from iains at gcc dot gnu dot org 2010-08-05 14:23 ------- does this solve the problem? (it's a hack - we should ensure that the debug sections do not appear in between our program sections, but that's for another day). Index: gcc/config/darwin.c =================================================================== --- gcc/config/darwin.c (revision 162881) +++ gcc/config/darwin.c (working copy) @@ -1699,6 +1699,23 @@ darwin_asm_output_dwarf_delta (FILE *file, int siz void darwin_file_start (void) { + fputs ("\t.const\n\t.static_const\n\t.cstring\n", asm_out_file) ; + fputs ("\t.literal4\n\t.literal8\n\t.literal16\n", asm_out_file) ; + fputs ("\t.data\n\t.static_data\n\t.const_data\n", asm_out_file) ; + if (!TARGET_64BIT) + { + if (flag_pic == 2) + fputs ("\t.picsymbol_stub\n", asm_out_file) ; + else + fputs ("\t.symbol_stub\n", asm_out_file) ; + fputs ("\t.lazy_symbol_pointer\n\t.non_lazy_symbol_pointer\n", asm_out_file); + fputs ("\t.section __TEXT,__textcoal_nt,coalesced,pure_instructions\n", asm_out_file); + } + else + { + fputs ("\t.section __TEXT,__eh_frame,coalesced,no_toc+strip_static_syms+live_support\n", asm_out_file) ; + } + in_section = NULL; if (write_symbols == DWARF2_DEBUG) { static const char * const debugnames[] = -- iains at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |iains at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45196
next prev parent reply other threads:[~2010-08-05 14:23 UTC|newest] Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top 2010-08-05 13:37 [Bug target/45196] New: " howarth at nitro dot med dot uc dot edu 2010-08-05 14:23 ` iains at gcc dot gnu dot org [this message] 2010-08-05 17:55 ` [Bug target/45196] " howarth at nitro dot med dot uc dot edu 2010-08-15 17:36 ` howarth at nitro dot med dot uc dot edu 2010-08-15 18:47 ` howarth at nitro dot med dot uc dot edu 2010-08-15 18:48 ` howarth at nitro dot med dot uc dot edu 2010-08-15 18:48 ` howarth at nitro dot med dot uc dot edu 2010-08-15 18:52 ` howarth at nitro dot med dot uc dot edu [not found] <bug-45196-4@http.gcc.gnu.org/bugzilla/> 2010-10-01 0:52 ` howarth at nitro dot med.uc.edu
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20100805142306.4689.qmail@sourceware.org \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).