How do I use .bss directive in assembly language? [on hold]
I have an assembly language program which stores a small amount of data, so I use the .bss
directive to allocate storage space. The assembler does not complain.
However, when I link with a .c
program, the linker complains - something about a PIE object. What's my problem?
Thank you.
gcc assembler
New contributor
put on hold as off-topic by karel, Charles Green, Kulfy, pomsky, Eric Carvalho 5 hours ago
This question appears to be off-topic. The users who voted to close gave this specific reason:
- "This is not about Ubuntu. Questions about other Linux distributions can be asked on Unix & Linux, those about Windows on Super User, those about Apple products on Ask Different and generic programming questions on Stack Overflow." – karel, Charles Green, Kulfy, pomsky, Eric Carvalho
If this question can be reworded to fit the rules in the help center, please edit the question.
add a comment |
I have an assembly language program which stores a small amount of data, so I use the .bss
directive to allocate storage space. The assembler does not complain.
However, when I link with a .c
program, the linker complains - something about a PIE object. What's my problem?
Thank you.
gcc assembler
New contributor
put on hold as off-topic by karel, Charles Green, Kulfy, pomsky, Eric Carvalho 5 hours ago
This question appears to be off-topic. The users who voted to close gave this specific reason:
- "This is not about Ubuntu. Questions about other Linux distributions can be asked on Unix & Linux, those about Windows on Super User, those about Apple products on Ask Different and generic programming questions on Stack Overflow." – karel, Charles Green, Kulfy, pomsky, Eric Carvalho
If this question can be reworded to fit the rules in the help center, please edit the question.
1
Hi, can you please provide the error you got? Also, feel free to add anything, even you think it may trivial, which might allow us all to help you :)
– thephoenix01
Jan 23 at 18:36
I think this should be asked on Stack Overflow since it is a programming question.
– Olorin
2 days ago
add a comment |
I have an assembly language program which stores a small amount of data, so I use the .bss
directive to allocate storage space. The assembler does not complain.
However, when I link with a .c
program, the linker complains - something about a PIE object. What's my problem?
Thank you.
gcc assembler
New contributor
I have an assembly language program which stores a small amount of data, so I use the .bss
directive to allocate storage space. The assembler does not complain.
However, when I link with a .c
program, the linker complains - something about a PIE object. What's my problem?
Thank you.
gcc assembler
gcc assembler
New contributor
New contributor
edited 2 days ago
Olorin
2,121720
2,121720
New contributor
asked Jan 23 at 18:18
DanDan
1
1
New contributor
New contributor
put on hold as off-topic by karel, Charles Green, Kulfy, pomsky, Eric Carvalho 5 hours ago
This question appears to be off-topic. The users who voted to close gave this specific reason:
- "This is not about Ubuntu. Questions about other Linux distributions can be asked on Unix & Linux, those about Windows on Super User, those about Apple products on Ask Different and generic programming questions on Stack Overflow." – karel, Charles Green, Kulfy, pomsky, Eric Carvalho
If this question can be reworded to fit the rules in the help center, please edit the question.
put on hold as off-topic by karel, Charles Green, Kulfy, pomsky, Eric Carvalho 5 hours ago
This question appears to be off-topic. The users who voted to close gave this specific reason:
- "This is not about Ubuntu. Questions about other Linux distributions can be asked on Unix & Linux, those about Windows on Super User, those about Apple products on Ask Different and generic programming questions on Stack Overflow." – karel, Charles Green, Kulfy, pomsky, Eric Carvalho
If this question can be reworded to fit the rules in the help center, please edit the question.
1
Hi, can you please provide the error you got? Also, feel free to add anything, even you think it may trivial, which might allow us all to help you :)
– thephoenix01
Jan 23 at 18:36
I think this should be asked on Stack Overflow since it is a programming question.
– Olorin
2 days ago
add a comment |
1
Hi, can you please provide the error you got? Also, feel free to add anything, even you think it may trivial, which might allow us all to help you :)
– thephoenix01
Jan 23 at 18:36
I think this should be asked on Stack Overflow since it is a programming question.
– Olorin
2 days ago
1
1
Hi, can you please provide the error you got? Also, feel free to add anything, even you think it may trivial, which might allow us all to help you :)
– thephoenix01
Jan 23 at 18:36
Hi, can you please provide the error you got? Also, feel free to add anything, even you think it may trivial, which might allow us all to help you :)
– thephoenix01
Jan 23 at 18:36
I think this should be asked on Stack Overflow since it is a programming question.
– Olorin
2 days ago
I think this should be asked on Stack Overflow since it is a programming question.
– Olorin
2 days ago
add a comment |
0
active
oldest
votes
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
1
Hi, can you please provide the error you got? Also, feel free to add anything, even you think it may trivial, which might allow us all to help you :)
– thephoenix01
Jan 23 at 18:36
I think this should be asked on Stack Overflow since it is a programming question.
– Olorin
2 days ago