public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/25376]  New: section attribute doesn't work on darwin
@ 2005-12-12 18:11 jconner at apple dot com
  2005-12-12 18:11 ` [Bug target/25376] " jconner at apple dot com
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: jconner at apple dot com @ 2005-12-12 18:11 UTC (permalink / raw)
  To: gcc-bugs

Trying to assign a function to a user-named section fails on darwin in the 4.0,
4.1, and mainline.  For example, compiling this code:

  void specialfn (void) __attribute__((section ("__TEXT,__init")));
  void specialfn (void) {}

Places the function 'specialfn' into the default .text section instead of the
user-specified __init section.  From the assembly code:

          .text
          .align 2
          .globl _specialfn
  _specialfn:

Should be:

          .section __TEXT,__init
          .align 2
          .globl _specialfn
  _specialfn:


-- 
           Summary: section attribute doesn't work on darwin
           Product: gcc
           Version: 4.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: jconner at apple dot com
GCC target triplet: powerpc-apple-darwin8.3.0


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


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

end of thread, other threads:[~2006-10-02 16:51 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-12-12 18:11 [Bug target/25376] New: section attribute doesn't work on darwin jconner at apple dot com
2005-12-12 18:11 ` [Bug target/25376] " jconner at apple dot com
2005-12-12 18:20 ` pinskia at gcc dot gnu dot org
2006-02-03 20:21 ` pinskia at gcc dot gnu dot org
2006-02-13 18:12 ` jconner at gcc dot gnu dot org
2006-02-14 17:23 ` jconner at gcc dot gnu dot org
2006-10-01  0:30 ` howarth at nitro dot med dot uc dot edu
2006-10-02 16:44 ` jconner at apple dot com
2006-10-02 16:51 ` pinskia at gcc dot gnu dot org

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).