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

--- Comment #20 from Rainer Orth <ro at CeBiTec dot Uni-Bielefeld.DE> ---
> --- Comment #19 from H.J. Lu <hjl.tools at gmail dot com> ---
[...]

> What doe Solaris ld generate?

Here are the initial sections of with either linker:

* gas-gld:

08048ff0 <__gcov_indirect_call_profiler_v2>:
 8048ff0:       55                      push   %ebp
 8048ff1:       89 e5                   mov    %esp,%ebp
 8048ff3:       57                      push   %edi
 8048ff4:       56                      push   %esi
 8048ff5:       53                      push   %ebx
 8048ff6:       e8 8d ff ff ff          call   8048f88 <__x86.get_pc_thunk.bx>
 8048ffb:       81 c3 99 3f 00 00       add    $0x3f99,%ebx
 8049001:       83 ec 1c                sub    $0x1c,%esp
 8049004:       8b 7d 08                mov    0x8(%ebp),%edi
 8049007:       8b 75 0c                mov    0xc(%ebp),%esi
 804900a:       65 a1 00 00 00 00       mov    %gs:0x0,%eax
 8049010:       03 83 8c 00 00 00       add    0x8c(%ebx),%eax
 8049016:       8b 55 10                mov    0x10(%ebp),%edx
 8049019:       39 10                   cmp    %edx,(%eax)

* gas-ld:

08052230 <__gcov_indirect_call_profiler_v2>:
 8052230:       55                      push   %ebp
 8052231:       89 e5                   mov    %esp,%ebp
 8052233:       57                      push   %edi
 8052234:       56                      push   %esi
 8052235:       53                      push   %ebx
 8052236:       e8 6e fb ff ff          call   8051da9 <__x86.get_pc_thunk.bx>
 805223b:       81 c3 4d 2b 01 00       add    $0x12b4d,%ebx
 8052241:       83 ec 1c                sub    $0x1c,%esp
 8052244:       8b 7d 08                mov    0x8(%ebp),%edi
 8052247:       8b 75 0c                mov    0xc(%ebp),%esi
 805224a:       65 a1 00 00 00 00       mov    %gs:0x0,%eax
 8052250:       05 fc ff ff ff          add    $0xfffffffc,%eax
 8052255:       90                      nop
 8052256:       8b 55 10                mov    0x10(%ebp),%edx
 8052259:       39 10                   cmp    %edx,(%eax)

The full executable is at

       
https://www.cebitec.uni-bielefeld.de/~ro/files/crossmodule-indircall-1-ld.tar.bz2

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils

Reply via email to