Subject: bin/8599: -ggdb loses on PowerPC
To: None <>
From: Charles M. Hannum <>
List: netbsd-bugs
Date: 10/09/1999 21:47:49
>Number:         8599
>Category:       bin
>Synopsis:       -ggdb loses on PowerPC
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    bin-bug-people (Utility Bug People)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Oct  9 21:03:00 1999
>Originator:     Charles M. Hannum
        Internetwork Hacker
>Release:        -current

        `cc -ggdb' usually fails on PowerPC systems.  This causes
        pkgsrc/mbone/nte to not build.

        $ cat >foo.c
        int foo; 
        $ cc -c -ggdb foo.c
        ggdb.s.powerpc: Assembler messages:
        ggdb.s.powerpc:70: Error: Bad expression
        ggdb.s.powerpc:70: Error: Rest of line ignored. First ignored character is `f'.

        This apparently has something to do with the way GCC generates
        references to items in the `short' data and bss sections
        (.sdata and .sbss).  Our assembler does not know the syntax it
        The correct solution would be to fix the assembler.

        Alternatively, one could change SDATA_DEFAULT_SIZE to 0 for
        now, causing .sdata and .sbss to not be used.  This would have
        a performance impact on compiled executables, though.
        As a hack just for pkgsrc/mbone/nte, one could simply modify
        it to not build with `-ggdb'.  It's rather pointless given
        that the executable is usually installed stripped anyway.