https://sourceware.org/bugzilla/show_bug.cgi?id=27178

            Bug ID: 27178
           Summary: x86-64: Omit _GLOBAL_OFFSET_TABLE_ for call foo@PLT
           Product: binutils
           Version: unspecified
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: gas
          Assignee: unassigned at sourceware dot org
          Reporter: i at maskray dot me
  Target Milestone: ---

echo 'call foo' > ./a.s
echo 'call foo@PLT' > ./b.s

gcc -c a.s b.s
% readelf -Ws a.o b.o

File: a.o

Symbol table '.symtab' contains 5 entries:
   Num:    Value          Size Type    Bind   Vis      Ndx Name
     0: 0000000000000000     0 NOTYPE  LOCAL  DEFAULT  UND 
     1: 0000000000000000     0 SECTION LOCAL  DEFAULT    1 
     2: 0000000000000000     0 SECTION LOCAL  DEFAULT    3 
     3: 0000000000000000     0 SECTION LOCAL  DEFAULT    4 
     4: 0000000000000000     0 NOTYPE  GLOBAL DEFAULT  UND foo

File: b.o

Symbol table '.symtab' contains 6 entries:
   Num:    Value          Size Type    Bind   Vis      Ndx Name
     0: 0000000000000000     0 NOTYPE  LOCAL  DEFAULT  UND 
     1: 0000000000000000     0 SECTION LOCAL  DEFAULT    1 
     2: 0000000000000000     0 SECTION LOCAL  DEFAULT    3 
     3: 0000000000000000     0 SECTION LOCAL  DEFAULT    4 
     4: 0000000000000000     0 NOTYPE  GLOBAL DEFAULT  UND
_GLOBAL_OFFSET_TABLE_
     5: 0000000000000000     0 NOTYPE  GLOBAL DEFAULT  UND foo


_GLOBAL_OFFSET_TABLE_ is not needed.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Reply via email to