public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "angela at releasedominatrix dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug other/19370] New: .size directive not emitted for mips-linux
Date: Tue, 11 Jan 2005 09:28:00 -0000	[thread overview]
Message-ID: <20050111092806.19370.angela@releasedominatrix.com> (raw)

In config/mips/linux.h, the macro ASM_DECLARE_FUNCTION_SIZE() doesn't actually 
emit the .size directive.  Testcase follows.

% cat tst.c
int
func1(void)
{
  return(1);
}
% mips-linux-gcc -c tst.c                   
% mips-linux-readelf -s tst.o             

Symbol table '.symtab' contains 11 entries:
   Num:    Value  Size Type    Bind   Vis      Ndx Name
     0: 00000000     0 NOTYPE  LOCAL  DEFAULT  UND 
     1: 00000000     0 FILE    LOCAL  DEFAULT  ABS tst.c
     2: 00000000     0 SECTION LOCAL  DEFAULT    1
     3: 00000000     0 SECTION LOCAL  DEFAULT    3 
     4: 00000000     0 SECTION LOCAL  DEFAULT    4
     5: 00000000     0 SECTION LOCAL  DEFAULT    8 
     6: 00000000     0 SECTION LOCAL  DEFAULT    5
     7: 00000000     0 SECTION LOCAL  DEFAULT    6
     8: 00000000     0 SECTION LOCAL  DEFAULT    9
     9: 00000000     0 FUNC    GLOBAL DEFAULT    1 func1
    10: 00000000     0 OBJECT  GLOBAL DEFAULT  UND _gp_disp

Will attach a patch after bug is opened.

-- 
           Summary: .size directive not emitted for mips-linux
           Product: gcc
           Version: 3.3.4
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: other
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: angela at releasedominatrix dot com
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: i686-pc-linux-gnu
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: mips-linux-gnu


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19370


             reply	other threads:[~2005-01-11  9:28 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-01-11  9:28 angela at releasedominatrix dot com [this message]
2005-01-11  9:29 ` [Bug other/19370] " angela at releasedominatrix dot com
2005-01-11  9:32 ` angela at releasedominatrix dot com
2005-01-11 12:41 ` [Bug target/19370] " pinskia at gcc dot gnu dot org
2005-01-11 22:43 ` echristo at redhat dot com
2005-01-13  2:39 ` echristo at redhat dot com
2005-04-05 21:06 ` echristo at redhat dot com
2005-06-05  7:40 ` pinskia at gcc dot gnu dot org
2005-06-05  7:41 ` pinskia at gcc dot gnu dot org

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=20050111092806.19370.angela@releasedominatrix.com \
    --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: 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).