The MASM Forum

Specialised Projects => Compiler Based Assembler => Assembler With Microsoft Visual C => Topic started by: TouEnMasm on September 07, 2015, 06:26:12 PM

Title: c++ imagerel 64 bits
Post by: TouEnMasm 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

Title: Re: c++ imagerel 64 bits
Post by: TouEnMasm on July 27, 2021, 01:01:36 AM
later,
put in comment work also with uasm

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
//////////++++++++++++
µ