Author Topic: c++ imagerel 64 bits  (Read 3506 times)

TouEnMasm

  • Member
  • *****
  • Posts: 1805
    • EditMasm
c++ imagerel 64 bits
« on: September 07, 2015, 06:26:12 PM »
the c++ /FA generate in 64 bits imagerel who couldn't be compile without modifies (label Far):
Quote
$pdata$_vsprintf_s_l DD imagerel $LN4
   DD   imagerel $LN4+99
   DD   imagerel $unwind$_vsprintf_s_l
pdata   ENDS
...........................
$LN4:           ; <<<<<<<<<<<<<<<<<<<<<<<<<<<<<    change : by  LABEL FAR
   mov   QWORD PTR [rsp+8], rbx
   mov   QWORD PTR [rsp+16], rbp
   mov   QWORD PTR [rsp+24], rsi
I am not sure of FAR,link emit warning "different type of .rdata" but it's work

Fa is a musical note to play with CL

TouEnMasm

  • Member
  • *****
  • Posts: 1805
    • EditMasm
Re: c++ imagerel 64 bits
« Reply #1 on: July 27, 2021, 01:01:36 AM »
later,
put in comment work also with uasm
Code: [Select]
comment µ
; COMDAT pdata
pdata SEGMENT
$pdata$??_H@YAXPEAX_K1P6APEAX0@Z@Z DD imagerel $LN5
DD imagerel $LN5+102
DD imagerel $unwind$??_H@YAXPEAX_K1P6APEAX0@Z@Z
pdata ENDS
//////////++++++++++++
µ
Fa is a musical note to play with CL