0

How do i change the base adress on GCC like in assembly if you would do:

org <address>

im compileing the source into an object and then use "objcopy" to get only the .text field out of it and put it into a binary file to execute (im creating a C kernel)

SeeSoftware
  • 391
  • 5
  • 15

1 Answers1

0

You have to specify a linker script to a linker in order to make a custom sections layout. Check with binutils docs at SourceWare site

Serge
  • 6,040
  • 15
  • 27