How do I use .bss directive in assembly language? [on hold]












0















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.










share|improve this question









New contributor




Dan is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











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
















0















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.










share|improve this question









New contributor




Dan is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











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














0












0








0








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.










share|improve this question









New contributor




Dan is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.












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






share|improve this question









New contributor




Dan is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











share|improve this question









New contributor




Dan is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









share|improve this question




share|improve this question








edited 2 days ago









Olorin

2,121720




2,121720






New contributor




Dan is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









asked Jan 23 at 18:18









DanDan

1




1




New contributor




Dan is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





New contributor





Dan is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.






Dan is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.




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














  • 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










0






active

oldest

votes

















0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes

Popular posts from this blog

數位音樂下載

When can things happen in Etherscan, such as the picture below?

格利澤436b