Skip to content

micropython #5

Description

@neuschaefer
  • fix crash on arm+linux+musl
    • upstream
    • add -z text to gcc flags on buildroot+musl
  • use as experimentation platform
  • support for more machine APIs on Linux
    • compare with circuitpython
    • SPI
    • I2C
    • Pin (GPIO)
    • UART

crash

The issue is a .text relocation:

  [12] .text             PROGBITS        00009418 009418 029db8 00  AX  0   0  8
...
 0x00000016 (TEXTREL)                    0x0
...
000095f0  00000017 R_ARM_RELATIVE        

<nsz> this is a pie, textrel can happen if you link non-pic code into a pic binary
<nsz> 000095f0  00000017 R_ARM_RELATIVE
<nsz> that is a relative reloc against something in .text
<nsz> you have to figure out what that is (probably a pointer in literal pool next to a function)

The problematic snippet can simply be replaced by b nlr_push_tail.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions