From: Nick Clifton <nickc@cygnus.com>
To: binutils@sourceware.cygnus.com
Subject: Patch: Support .loc STABS directive on ELF based toolchains.
Date: Wed, 29 Sep 1999 07:37:00 -0000 [thread overview]
Message-ID: <199909291437.PAA30604@pathia.cygnus.co.uk> (raw)
Hi Guys,
Here is a small patch to allow the .loc STABS directive to be used
on ELF toolchains which use .gnu.linkonce.t sections as special
cases of the .text section.
OK to apply ?
Cheers
Nick
1999-09-29 Nick Clifton <nickc@cygnus.com>
* ecoff.c (ecoff_directive_loc): Allow the .loc directive to
appear inside .gnu.linkoce.t. sections for ELF based
toolchains.
Index: gas/ecoff.c
===================================================================
RCS file: /cvs/cvsfiles/devo/gas/ecoff.c,v
retrieving revision 1.68
diff -p -r1.68 ecoff.c
*** ecoff.c 1999/06/20 17:46:13 1.68
--- ecoff.c 1999/09/29 14:27:51
*************** ecoff_directive_loc (ignore)
*** 3301,3309 ****
if (now_seg != text_section)
{
! as_warn (_(".loc outside of .text"));
! demand_empty_rest_of_line ();
! return;
}
/* Skip the file number. */
--- 3301,3318 ----
if (now_seg != text_section)
{
! #ifdef OBJ_ELF
! /* The GNU toolchain uses an extension for ELF: a section
! beginning with the magic string .gnu.linkonce.t. is a
! linkonce .text section. */
! const char name[] = ".gnu.linkonce.t.";
! if (strncmp (segment_name (now_seg), name, sizeof name - 1))
! #endif
! {
! as_warn (_(".loc outside of .text"));
! demand_empty_rest_of_line ();
! return;
! }
}
/* Skip the file number. */
next reply other threads:[~1999-09-29 7:37 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-09-29 7:37 Nick Clifton [this message]
1999-09-29 8:01 ` Ian Lance Taylor
1999-09-30 2:18 Nick Clifton
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=199909291437.PAA30604@pathia.cygnus.co.uk \
--to=nickc@cygnus.com \
--cc=binutils@sourceware.cygnus.com \
/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: link
Be 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).