https://sourceware.org/bugzilla/show_bug.cgi?id=28211
Bug ID: 28211 Summary: gas puts local labels in the symbol talble if @GOTOFF is used in rodata Product: binutils Version: 2.30 Status: NEW Severity: normal Priority: P2 Component: gas Assignee: unassigned at sourceware dot org Reporter: pinskia at gcc dot gnu.org Target Milestone: --- Created attachment 13605 --> https://sourceware.org/bugzilla/attachment.cgi?id=13605&action=edit test assembly file >From https://gcc.gnu.org/bugzilla/show_bug.cgi?id=43025 . Assemble attach .s file on 32bit i686 and do nm on the object file: [apinski@xeond2 upstream-gcc-git]$ as --32 -o t55.o t55.s [apinski@xeond2 upstream-gcc-git]$ nm t55.o 00000000 T fn U _GLOBAL_OFFSET_TABLE_ 00000039 t .L10 00000032 t .L11 0000002b t .L12 00000024 t .L13 00000063 t .L3 0000005c t .L5 00000055 t .L6 0000004e t .L7 00000047 t .L8 00000040 t .L9 00000000 T __x86.get_pc_thunk.ax ----- CUT --- Jakub mentions in the gcc bug: I'd say this is a gas bug, I don't see why if we don't need on x86 the local symbols in .long .L3 or call .L3 cases, we don't need it for .long .L3@GOTOFF either, resolving it to .text + <offset> is perfectly fine. ------ CUT ----- -- You are receiving this mail because: You are on the CC list for the bug.