forked from AspeedTech-BMC/u-boot
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
https://lists.denx.de/pipermail/u-boot/2017-July/298016.html The --wno-unaligned-access option does not help because the compiler assumes that the struct pointer is properly aligned. This bug can be fixed by either: 1) Always ensure proper alignment of the udp packet header pointers, which are passed to the net_set_ip_header() function and similar functions. Some further investigation is necessary. or 2) Just add a "packed" attribute to the ip_udp_hdr struct. In this case the compiler will always assume the smallest 1 byte alignment. It may have some performance implications though.
- Loading branch information
1 parent
751ab06
commit 2627937
Showing
3 changed files
with
9 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters