https://sourceware.org/bugzilla/show_bug.cgi?id=21816
Bug ID: 21816 Summary: Gnu Assembler for aarch64 injecting alignment bytes for aligned data Product: binutils Version: 2.28 Status: UNCONFIRMED Severity: normal Priority: P2 Component: gas Assignee: unassigned at sourceware dot org Reporter: mark4th at gmail dot com Target Milestone: --- I have a sub-macro that lays down a .ascii string and then aligns the assemby to a 32 bit address (4 bytes) using .align 4. On armv7a this works fine. on aarch64 when the address is already aligned it the assembler injects 8 bytes of zeros as shown in the following... df08: 00000000 .word 0x00000000 ; 64 bit link to previous item df0c: 00000000 .word 0x00000000 ; there is no previous item df10: 69726f06 .word 0x69726f06 ; ascii string starting with df14: 6967 .short 0x6967 ; a count byte 6, "origin" df16: 6e .byte 0x6e df17: 00 .byte 0x00 ; .align 4 df18: 0000a090 .word 0x0000a090 ; address of code associated df1c: 00000000 .word 0x00000000 ; with this symbol everything looks great so far... df20: 0000df10 .word 0x0000df10 ; link to previous items df24: 00000000 .word 0x00000000 ; string not to its link df28: 72657607 .word 0x72657607 ; 7, "version" df2c: 6e6f6973 .word 0x6e6f6973 we are now at the point where the macro that layed down the above string attempts to align the data to a 32 bit address with the .align 4 *** df30: 00000000 .word 0x00000000 ; bogus alignment bytes and df34: 00000000 .word 0x00000000 ; link code associated with df38: 0000a0a8 .word 0x0000a0a8 ; this symbol -- You are receiving this mail because: You are on the CC list for the bug. _______________________________________________ bug-binutils mailing list bug-binutils@gnu.org https://lists.gnu.org/mailman/listinfo/bug-binutils