Give ELF notes 4-byte alignment.
Use .balign because what the argument means doesn't vary between architectures. Bug: http://b/70166421 Test: builds Change-Id: I1d54f2f6942dd2893f3fda30bac08d07ea9cd346
This commit is contained in:
parent
fdacec1d42
commit
12533271fb
|
@ -25,14 +25,15 @@
|
|||
* OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*/
|
||||
.section .note.android.kuser_helper_on,"a",%note
|
||||
.align 2
|
||||
.type kuser_helper_on, %object
|
||||
|
||||
.section .note.android.kuser_helper_on,"a",%note
|
||||
.balign 4
|
||||
.type kuser_helper_on, %object
|
||||
kuser_helper_on:
|
||||
.long 2f-1f /* int32_t namesz */
|
||||
.long 3f-2f /* int32_t descsz */
|
||||
.long 3 /* int32_t type */
|
||||
1: .ascii "Android\0" /* char name[] */
|
||||
2: .long 1 /* int32_t on */
|
||||
.long 2f-1f // int32_t namesz
|
||||
.long 3f-2f // int32_t descsz
|
||||
.long 3 // int32_t type
|
||||
1:.ascii "Android\0" // char name[]
|
||||
2:.long 1 // int32_t on
|
||||
3:
|
||||
.size kuser_helper_on, .-kuser_helper_on
|
||||
.size kuser_helper_on, .-kuser_helper_on
|
||||
|
|
|
@ -26,14 +26,14 @@
|
|||
* SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
.section .note.android.ident,"a",%note
|
||||
.align 2
|
||||
.type abitag, %object
|
||||
.section .note.android.ident,"a",%note
|
||||
.balign 4
|
||||
.type abitag, %object
|
||||
abitag:
|
||||
.long 2f-1f /* int32_t namesz */
|
||||
.long 3f-2f /* int32_t descsz */
|
||||
.long 1 /* int32_t type */
|
||||
1: .ascii "Android\0" /* char name[] */
|
||||
2: .long PLATFORM_SDK_VERSION /* int32_t android_api */
|
||||
.long 2f-1f // int32_t namesz
|
||||
.long 3f-2f // int32_t descsz
|
||||
.long 1 // int32_t type
|
||||
1:.ascii "Android\0" // char name[]
|
||||
2:.long PLATFORM_SDK_VERSION // int32_t android_api
|
||||
3:
|
||||
.size abitag, .-abitag
|
||||
.size abitag, .-abitag
|
||||
|
|
Loading…
Reference in New Issue