Problem with pcrel relocs and addends
Andreas Schwab
schwab@suse.de
Wed Nov 2 20:49:00 GMT 2005
More information about the Binutils mailing list
Wed Nov 2 20:49:00 GMT 2005
- Previous message (by thread): Problem with pcrel relocs and addends
- Next message (by thread): Problem with pcrel relocs and addends
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
"Will Newton" <will.newton@imgtec.com> writes: > The second is wrong in that case. Which suggests that either I am > misinterpreting what the addend field means, or cgen is doing something > a bit odd. I think you are right, I was misinterpreting your example. Neither relocation should have an addend, unless the source has one, and the assembler is doing something wrong here. When I try the equivalent with the m68k-linux assembler I get this: .global f1 f1: jbsr f2 .global f2 f2: jbsr f1 a.out: file format elf32-m68k RELOCATION RECORDS FOR [.text]: OFFSET TYPE VALUE 00000002 R_68K_PC32 f2 00000008 R_68K_PC32 f1 Now I know nothing about cgen, so I can't help you any further. Andreas. -- Andreas Schwab, SuSE Labs, schwab@suse.de SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."
- Previous message (by thread): Problem with pcrel relocs and addends
- Next message (by thread): Problem with pcrel relocs and addends
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Binutils mailing list