Skip to content

Fix Segmentation Fault in chap2/endianness#91

Open
afernandez90 wants to merge 1 commit intoApress:masterfrom
afernandez90:endianness_segfault_fix
Open

Fix Segmentation Fault in chap2/endianness#91
afernandez90 wants to merge 1 commit intoApress:masterfrom
afernandez90:endianness_segfault_fix

Conversation

@afernandez90
Copy link

The instructions for the functions are defined in a .data section, which results in a segmentation fault. Marking the section as .text resolves the issue.

Otherwise execution results in a segmentation fault as the processor tries to execute code in the .data section.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant