AVR C Runtime Library - Patches: patch #9968, Update __mul[hs]i_const_10...
You are not allowed to post comments on this tracker with your current authentication level.
patch #9968: Update __mul[hs]i_const_10 functions to detect them as function in the ELF object
Submitter: | Pitchumani <pitchumani> | ||
Submitted: | Wed 26 Aug 2020 09:11:13 AM UTC | ||
Category: | None | Priority: | 5 - Normal |
Status: | Works For Me | Privacy: | Public |
Assigned to: | pitchumani | Open/Closed: | Open |
Attached Files
Depends on the following items: None found
Items that depend on this one: None found
Carbon-Copy List
There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.
Follow 2 latest changes.
Date | Changed by | Updated Field | Previous Value | => | Replaced by |
---|---|---|---|---|---|
2020-08-26 | pitchumani | Summary | Update __multi[hs]i_const_10 functions to detect them as function in the ELF object | ![]() |
Update __mul[hs]i_const_10 functions to detect them as function in the ELF object |
2020-08-26 | pitchumani | Attached File | - | ![]() |
Added mulhi_si_const_10.patch, #49708 |
The __mul[hs]i_const_10 functions are defined in assembly, but these symbols' types are unknown ("NOTYPE") in ELF object.
Example:
$ avr-readelf -s ~/install/avr/lib/avrxmega3/libc.a | grep "_const_10"
6: 00000000 0 NOTYPE GLOBAL DEFAULT UND __mulhi_const_10
6: 00000000 0 NOTYPE GLOBAL DEFAULT UND __mulsi_const_10
5: 00000000 0 NOTYPE GLOBAL DEFAULT 4 __mulsi_const_10
5: 00000000 0 NOTYPE GLOBAL DEFAULT 4 __mulhi_const_10
The attached patch updates these functions type and also adds .size attribute.
Output after applying this patch:
$ avr-readelf -s ~/install/avr/lib/avrxmega3/libc.a | grep "_const_10"
6: 00000000 0 NOTYPE GLOBAL DEFAULT UND __mulhi_const_10
6: 00000000 0 NOTYPE GLOBAL DEFAULT UND __mulsi_const_10
5: 00000000 42 FUNC GLOBAL DEFAULT 4 __mulsi_const_10
5: 00000000 16 FUNC GLOBAL DEFAULT 4 __mulhi_const_10