'unknown pseudo-op: `.globl_start'

I have some assembly code written for 32-bit machines but I need to run that on x86-64 bit architecture. Please suggest ways to achieve this.

I'm compiling using certain flags in the following manner: as --32 -o exec_shell.o exec_shell.s

Error Messages:

exec_shell.s: Assembler messages: exec_shell.s:2: Error: unknown pseudo-op: `.globl_start'



Solution 1:[1]

you have to put space between .globl and _start. eg.

 .text
 .globl _start 
 _start: 

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 rajat kumar