[RTEMS Project] #4013: Using the size of an object to deduce the alignment is broken on some architectures
RTEMS trac
trac at rtems.org
Mon Jun 29 13:16:52 UTC 2020
#4013: Using the size of an object to deduce the alignment is broken on some
architectures
-----------------------------+------------------------------
Reporter: Sebastian Huber | Owner: Sebastian Huber
Type: defect | Status: assigned
Priority: normal | Milestone: 5.2
Component: score | Version: 5
Severity: normal | Resolution:
Keywords: | Blocked By:
Blocking: |
-----------------------------+------------------------------
Comment (by Joel Sherrill):
The goal was to ensure generically that the start of a partition was
aligned the same on all architectures. Buffers allocated from one should
meet the alignment requirements of a malloc'ed object which means the
alignment of a double. It is the user's responsibility that the memory
passed in is aligned properly. I contend that this test is defective if it
does not address alignment.
--
Ticket URL: <http://devel.rtems.org/ticket/4013#comment:7>
RTEMS Project <http://www.rtems.org/>
RTEMS Project
More information about the bugs
mailing list