berkus / mclinker

Automatically exported from code.google.com/p/mclinker
Other
0 stars 0 forks source link

define __start and __stop symbols for the section (GNU extension) #98

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
This issue is found when linking the libbluetoothd library for nexus 7.

Error: undefined reference to `__start___debug'
Error: undefined reference to `__stop___debug'
Error: undefined reference to `__start___debug'
Error: undefined reference to `__stop___debug'

======================================================================
readelf -S adapter.o
  [698] __debug           PROGBITS        00000000 0055d0 0000c0 00  WA  0   0  8
  [699] .rel__debug       REL             00000000 02fd38 0000c0 08     740 698  4

readelf -Srs log.o | grep __debug
00000020  00004660 R_ARM_GOT_PREL    00000000   __start___debug
00000024  00004760 R_ARM_GOT_PREL    00000000   __stop___debug
00000094  00004660 R_ARM_GOT_PREL    00000000   __start___debug
00000098  00004760 R_ARM_GOT_PREL    00000000   __stop___debug
    70: 00000000     0 NOTYPE  GLOBAL DEFAULT  UND __start___debug
    71: 00000000     0 NOTYPE  GLOBAL DEFAULT  UND __stop___debug

Original issue reported on code.google.com by pete.c...@gmail.com on 30 Oct 2012 at 6:01

Attachments:

GoogleCodeExporter commented 9 years ago

Original comment by pete.c...@gmail.com on 30 Oct 2012 at 6:15

Attachments:

GoogleCodeExporter commented 9 years ago
Done at revision b1d88f340511

Original comment by mysekki on 30 Oct 2012 at 7:47