https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63773

--- Comment #27 from ro at CeBiTec dot Uni-Bielefeld.DE <ro at CeBiTec dot 
Uni-Bielefeld.DE> ---
> --- Comment #26 from mrs at gcc dot gnu.org <mrs at gcc dot gnu.org> ---
> Are there any symbols in .text?  If so, this is wrong.  All symbols have to
> have 1 or more bytes after them.  This is just how the ABI is.  The creator of

Not AFAICS: otool -rv has

make-temp-file.o:
Relocation information (__TEXT,__text) 54 entries
address  pcrel length extern type    scattered symbolnum/value
[...]
00000257 False byte   n/a    VANILLA True      0x000003c0

which corresponds to this in the disassembly (otool -tv):

00000253        addb    %al,%cl
00000255        sbbl    $0xc3,%esi
00000258        leal    0x02(%esi),%eax

In the .s file, we have

        addb    %al, %cl
        sbbl    $3+_vartmp, %esi
        leal    2(%esi), %eax

and

        .zerofill __DATA,__bss2,_memoized_tmpdir,4,2
        .const
        .align 2
_vartmp:
        .byte   47
[...]

So no zero-size symbol in sight.

I'm attaching preprocessed input, .s and .o files so you can see for
yourself.

        Rainer

Reply via email to