SASM icon indicating copy to clipboard operation
SASM copied to clipboard

Warnings in builder ?

Open aguytech opened this issue 3 years ago • 1 comments

uname -a Linux 970a 5.15.32-1-MANJARO #1 SMP PREEMPT Mon Mar 28 09:16:36 UTC 2022 x86_64 GNU/Linux sasm 3.12.2

When I try to build the simple following code manually, it works fine but not in sasm ?

bits 32

section .data
    message db "Hello World!", 10

section .text
    global _start
    _start:
        mov eax, 4
        mov ebx, 1
        mov ecx, message
        mov edx, 12+1
        int 0x80

        mov eax, 1
        mov ebx, 0
        int 0x80
nasm -g -f elf32 test2.asm -l list
ld test2.o -m elf_i386 -o test2
./test2
Hello world !

Here is my sasm configuration:

  • -g -f elf32 $SOURCE$ -l $LSTOUTPUT$ -o $PROGRAM.OBJ$
  • Build in current directory
  • Disable linking

I'm looking for logs file and I did not found I tried an other simple code with the same result ?

Thank you for any help ;o)

aguytech avatar May 02 '22 05:05 aguytech

here is the error message in sasm:

[07:43:20] Build started...
[07:43:20] Warning! Errors have occurred in the build:

aguytech avatar May 02 '22 05:05 aguytech

You shouldn't disable linking. You should link it with ld and specify correct linking options for it (see help): $PROGRAM.OBJ$ -m elf_i386 -o $PROGRAM$

Dman95 avatar Feb 06 '23 11:02 Dman95